diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2020-03-28 20:03:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2020-03-28 20:03:34 +0300 |
commit | 240ca54145159a7aefc74ca8b23ed273e0ce2cbf (patch) | |
tree | 4f39bb38fc5670c4a0e3952606234cfe5a1fd573 | |
parent | 7b77cc31e13e01c8937c97d4f5446a5716f28e78 (diff) | |
download | atracdenc-0.0.3.tar.gz |
Add atrac3_lp4 cmd alias0.0.3
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index a036d1e..9cd8b40 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,7 +48,7 @@ typedef std::unique_ptr<IProcessor<TFloat>> TAtracProcessorPtr; static void printUsage(const char* myName) { cout << "\tusage: " << myName << " <-e <atrac1|atrac3>|-d> <-i input> <-o output>\n" << endl; - cout << "-e atrac1|atrac3 encode mode (PCM -> ATRAC), -i wav file, -o aea/oma file" << endl; + cout << "-e atrac1|atrac3|atrac3_lp4 encode mode (PCM -> ATRAC), -i wav file, -o aea/oma file" << endl; cout << "-d decode mode (ATRAC -> PCM), -i aea file, -o wav file" << endl; cout << "-h get help" << endl; @@ -65,7 +65,7 @@ static void printProgress(int percent) static string GetHelp() { - return "\n--encode [atrac1|atrac3] -e <atrac1|atrac3> \t - encode mode (default codec is ATRAC1)" + return "\n--encode [atrac1|atrac3|atrac3_lp4] -e <atrac1|atrac3> \t - encode mode (default codec is ATRAC1)" "\n--decode -d \t - decode mode (only ATRAC1 supported)" "\n -i input file" "\n -o output file" @@ -250,6 +250,9 @@ int main_(int argc, char* const* argv) if (optarg) { if (strcmp(optarg, "atrac3") == 0) { mode |= E_ATRAC3; + } else if (strcmp(optarg, "atrac3_lp4") == 0) { + mode |= E_ATRAC3; + bitrate = 64; } else if (strcmp(optarg, "atrac1") == 0) { // this is the default } else { |