aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2017-06-15 21:55:23 +0000
committerDaniil Cherednik <dan.cherednik@gmail.com>2017-06-15 21:55:23 +0000
commit97a9667b1442624b41ad14bc3712e759205ecd80 (patch)
tree8924e86fbcf81143cde95437682f53c23e6bfc6b /src
parent5d09a7808302fb409f4bc2b52a1d034957b5da43 (diff)
downloadatracdenc-97a9667b1442624b41ad14bc3712e759205ecd80.tar.gz
Set default LP2 for ATRAC3
Diffstat (limited to 'src')
-rw-r--r--src/atrac/atrac3.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/atrac/atrac3.cpp b/src/atrac/atrac3.cpp
index 7764916..8236a92 100644
--- a/src/atrac/atrac3.cpp
+++ b/src/atrac/atrac3.cpp
@@ -43,7 +43,10 @@ double TAtrac3Data::GainLevel[16];
double TAtrac3Data::GainInterpolation[31];
const TContainerParams* TAtrac3Data::GetContainerParamsForBitrate(uint32_t bitrate) {
- std::cout << bitrate << std::endl;
+ // Set default to LP2 mode
+ if (bitrate == 0) {
+ bitrate = 132300;
+ }
return std::lower_bound(ContainerParams, ContainerParams+8, bitrate);
}