mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 23:39:41 +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);
|
SAMPLE_FORMAT_32_BIT_FLOAT);
|
||||||
|
|
||||||
buffer->SetSamples(read > 0 ? read : 0);
|
buffer->SetSamples(read > 0 ? read : 0);
|
||||||
|
buffer->SetSampleRate(nomad_info(this->nomadContext)->sample_rate);
|
||||||
|
|
||||||
return (read > 0) ? true : false;
|
return (read > 0) ? true : false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user