mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 09:01:15 +00:00
Fixed nomad mp3 decoder sample rate calculation issue.
This commit is contained in:
parent
c433073abe
commit
e90719eac5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user