Merge pull request #2413 from mozilla/issue2410

Set sample_rate attribute of ds_audio_buffer in NO_SOX client (Fixes #2410)
This commit is contained in:
Reuben Morais 2019-10-09 10:15:18 +02:00 committed by GitHub
commit f893dc8c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ GetAudioBuffer(const char* path)
unsigned int sample_rate;
fseek(wave, 24, SEEK_SET); rv = fread(&sample_rate, 4, 1, wave);
res.sample_rate = (int)sample_rate;
unsigned short bits_per_sample;
fseek(wave, 34, SEEK_SET); rv = fread(&bits_per_sample, 2, 1, wave);