Skip to content

Commit 5121590

Browse files
author
slmdev
committed
v0.6.5
1 parent 730f9f8 commit 5121590

File tree

14 files changed

+299
-232
lines changed

14 files changed

+299
-232
lines changed

src/cmdline.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,17 @@ int CmdLine::Parse(int argc,char *argv[])
125125
else if (key=="--LIST") mode=LIST;
126126
else if (key=="--LISTFULL") mode=LISTFULL;
127127
else if (key=="--NORMAL") opt.profile=0;
128-
else if (key=="--HIGH") opt.profile=1;
129-
else if (key=="--OPTIMIZE") {
128+
else if (key=="--HIGH") {
129+
opt.profile=1;
130+
opt.optimize=1;
131+
opt.optimize_mode=2;
132+
opt.sparse_pcm=1;
133+
} else if (key=="--VERYHIGH") {
134+
opt.profile=1;
135+
opt.optimize=1;
136+
opt.optimize_mode=3;
137+
opt.sparse_pcm=1;
138+
} else if (key=="--OPTIMIZE") {
130139
opt.optimize=1;
131140
if (val=="FAST") {
132141
opt.optimize_mode=0;

src/cmdline.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
const char SACHelp[] =
99
"usage: sac [--options] input output\n\n"
1010
" --encode encode input.wav to output.sac (default)\n"
11-
" --normal normal compression (default)\n"
12-
" --high high compression, slow\n"
13-
" --optimize=# enable frame-based optimization\n"
14-
" #=fast|normal|high|veryhigh|insane\n"
15-
" --sparse-pcm enable pcm modelling\n"
11+
" --normal normal compression (default)\n"
12+
" --high high compression, slow\n"
13+
" --veryhigh very high compression, really slow\n"
1614
" --decode decode input.sac to output.wav\n"
17-
" --list list info about input.[wav|sac]\n"
18-
" --listfull verbose info about input\n\n";
15+
" --list list info about input.sac\n"
16+
" --listfull verbose info about input\n\n"
17+
" advanced options\n"
18+
" --optimize=# frame-based optimization\n"
19+
" #=fast|normal|high|veryhigh|insane\n"
20+
" --sparse-pcm enable pcm modelling\n";
1921

2022
class CmdLine {
2123
enum CMODE {ENCODE,DECODE,LIST,LISTFULL};

src/file/file.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define FILE_H
33

44
//#include "../global.h"
5+
#include <cstdint>
56
#include <string>
67
#include <vector>
78
#include <fstream>

src/global.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ typedef std::vector <double*>ptr_vec1D;
2727
template <class T> T abs(T a){return ((a) < 0)?-(a):(a);}
2828
template <class T> T div_signed(T val,T s){return val<0?-(((-val)+(1<<(s-1)))>>s):(val+(1<<(s-1)))>>s;};
2929

30-
#define RNDINT(f) ((int)(f >= 0.0 ? (f + 0.5))
30+
#define RNDINT(f) ((int)(f >= 0.0 ? (f + 0.5) : (f - 0.5))
3131

3232
#endif // GLOBAL_H

0 commit comments

Comments
 (0)