summaryrefslogtreecommitdiffstats
path: root/src/dabplus-enc.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-16 20:35:33 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-16 20:35:33 +0200
commit7dcb0fa50128ab924cb4fce1b2898eb1a9ab8ee8 (patch)
tree4c8df7d35038a6d4e7e1a6c6c10253c59545054f /src/dabplus-enc.cpp
parent8af4aca43ad1939c578f24e998d2d2ff58e7cc2c (diff)
downloadODR-AudioEnc-7dcb0fa50128ab924cb4fce1b2898eb1a9ab8ee8.tar.gz
ODR-AudioEnc-7dcb0fa50128ab924cb4fce1b2898eb1a9ab8ee8.tar.bz2
ODR-AudioEnc-7dcb0fa50128ab924cb4fce1b2898eb1a9ab8ee8.zip
Indentation and code formatting
Diffstat (limited to 'src/dabplus-enc.cpp')
-rw-r--r--src/dabplus-enc.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index 9cb9333..2822f94 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -598,13 +598,15 @@ int main(int argc, char *argv[])
}
else if (read != input_size) {
if (inFifoSilence && file_in.eof()) {
- memset(input_buf, 0, input_size);
- read = input_size;
- usleep((long int)input_size*1000000/(bytes_per_sample*channels*sample_rate));
- } else {
- fprintf(stderr, "Short file read !\n");
- break;
- }
+ memset(input_buf, 0, input_size);
+ read = input_size;
+ usleep((long)input_size * 1000000 /
+ (bytes_per_sample * channels * sample_rate));
+ }
+ else {
+ fprintf(stderr, "Short file read !\n");
+ break;
+ }
}
}
else if (drift_compensation) {