Fixed nomad mp3 decoder sample rate calculation issue.

This commit is contained in:
casey langen 2017-02-28 22:47:02 -08:00
parent c433073abe
commit e90719eac5

View File

@ -104,6 +104,7 @@ bool NomadDecoder::GetBuffer(IBuffer *buffer) {
SAMPLE_FORMAT_32_BIT_FLOAT);
buffer->SetSamples(read > 0 ? read : 0);
buffer->SetSampleRate(nomad_info(this->nomadContext)->sample_rate);
return (read > 0) ? true : false;
}