summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-09 18:06:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-09 18:06:46 +0100
commitc7d6d3fcc75fcf702540a955665e6d9d505dadcb (patch)
treee85ef0ea33fea0ec500ca98c60fb04055a320791 /src
parent266b32c60ef35409ca16f2ffeaff04ec326c9690 (diff)
downloadfdk-aac-dabplus-c7d6d3fcc75fcf702540a955665e6d9d505dadcb.tar.gz
fdk-aac-dabplus-c7d6d3fcc75fcf702540a955665e6d9d505dadcb.tar.bz2
fdk-aac-dabplus-c7d6d3fcc75fcf702540a955665e6d9d505dadcb.zip
Remove bytes_per_sample, replace by existing macro
Diffstat (limited to 'src')
-rw-r--r--src/dabplus-enc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index 7448f8b..684d3a7 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -244,7 +244,6 @@ int main(int argc, char *argv[])
const char *outuri = NULL;
int sample_rate=48000, channels=2;
- const int bytes_per_sample = 2;
void *rs_handler = NULL;
bool afterburner = true;
bool inFifoSilence = false;
@@ -508,7 +507,7 @@ int main(int argc, char *argv[])
}
// Each DAB+ frame will need input_size audio bytes
- const int input_size = channels * bytes_per_sample * info.frameLength;
+ const int input_size = channels * BYTES_PER_SAMPLE * info.frameLength;
fprintf(stderr, "DAB+ Encoding: framelen=%d (%dB)\n",
info.frameLength,
input_size);
@@ -670,7 +669,7 @@ int main(int argc, char *argv[])
memset(input_buf, 0, input_size);
read = input_size;
usleep((long)input_size * 1000000 /
- (bytes_per_sample * channels * sample_rate));
+ (BYTES_PER_SAMPLE * channels * sample_rate));
}
else {
fprintf(stderr, "Short file read !\n");