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:
commit
f893dc8c23
|
@ -221,6 +221,7 @@ GetAudioBuffer(const char* path)
|
||||||
|
|
||||||
unsigned int sample_rate;
|
unsigned int sample_rate;
|
||||||
fseek(wave, 24, SEEK_SET); rv = fread(&sample_rate, 4, 1, wave);
|
fseek(wave, 24, SEEK_SET); rv = fread(&sample_rate, 4, 1, wave);
|
||||||
|
res.sample_rate = (int)sample_rate;
|
||||||
|
|
||||||
unsigned short bits_per_sample;
|
unsigned short bits_per_sample;
|
||||||
fseek(wave, 34, SEEK_SET); rv = fread(&bits_per_sample, 2, 1, wave);
|
fseek(wave, 34, SEEK_SET); rv = fread(&bits_per_sample, 2, 1, wave);
|
||||||
|
|
Loading…
Reference in New Issue