Repository navigation
Commit affa43f
committed
Use WAV file sample rate unless user explicitly set samprate
Fixes issue where WAV file sample rates were ignored because the check
for 'samprate == 0' always failed (samprate defaults to 16000).
Now checks if -samprate was actually passed on the command line. If not,
uses the WAV file's sample rate. If user explicitly set it, respects
their choice.
This allows WAV files with any sample rate (8kHz, 24kHz, 32kHz, 48kHz,
etc.) to be processed correctly without requiring users to manually
specify -samprate.1 parent 71b75d4 commit affa43f
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
| |||
154 | 171 | | |
155 | 172 | | |
156 | 173 | | |
157 | | - | |
| 174 | + | |
158 | 175 | | |
159 | | - | |
| 176 | + | |
160 | 177 | | |
161 | 178 | | |
162 | 179 | | |
| |||
0 commit comments