jniemann66 / ReSampler

High quality command-line audio sample rate converter
GNU Lesser General Public License v2.1
162 stars 26 forks source link

potential bug with default subformat and 32-bit float input: #1

Closed jniemann66 closed 8 years ago

jniemann66 commented 8 years ago
1.1.0 32-bit version, SSE2 build ... CPU supports SSE2 (ok) Input file: C:\webprojects\WebSite1\uploads\f0f661bc7292305bcb54a3ca1d16547b Output file: C:\webprojects\WebSite1\uploads\f0f661bc7292305bcb54a3ca1d16547b.wav Output Bit Format not specified **Output file format wav and subformat 32f combination not valid ... defaulting to 16** Changing output file format to wav source file channels: 1 input sample rate: 88200 output sample rate: 44100 input bit format: 32f (float) Conversion ratio: 0.5 (1:2) Scanning input file for peaks ...Done Peak input sample: 0.000010 (-100.000267 dBFS) Converting ...Done Peak output sample: 0.000010 (-100.331604 dBFS) Time=109 ms
jniemann66 commented 8 years ago

Fixed missing break; in determineBestBitFormat():

`if (sf_format_check(&sfinfo)) { // Match: infile's subformat is valid for outfile's format

break; } else { // infile's subformat is not valid for outfile's format; use outfile's default subformat ... //}`