Skip to content

Commit

Permalink
Add atrac3_lp4 cmd alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherednik committed Mar 28, 2020
1 parent 7b77cc3 commit 240ca54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 240ca54

Please sign in to comment.