Fix STDIN, file playback, and WAV file creation

Fix STDIN and file playback
set rate out to 8000 when calling for any of these methods
This commit is contained in:
lwvmobile
2022-02-08 18:35:56 -05:00
committed by GitHub
parent 9f0e0adee8
commit c408a57198
7 changed files with 60 additions and 60 deletions

View File

@@ -284,7 +284,7 @@ openWavOutFile (dsd_opts * opts, dsd_state * state)
// opts->wav_out_f = fopen (opts->wav_out_file, "w");
SF_INFO info;
info.samplerate = 8000;
info.samplerate = 8000; //8000
info.channels = 1;
info.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16 | SF_ENDIAN_LITTLE;
opts->wav_out_f = sf_open (opts->wav_out_file, SFM_WRITE, &info);