mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 23:39:41 +00:00
Ugh. Fixed FlacDecoder I broke recently.
This commit is contained in:
parent
f57abafb42
commit
f34b2c87c2
@ -233,7 +233,7 @@ bool FlacDecoder::GetBuffer(IBuffer *buffer) {
|
||||
if (FLAC__stream_decoder_process_single(this->decoder)) {
|
||||
if (this->outputBuffer && this->outputBufferUsed > 0) {
|
||||
buffer->SetSamples(this->outputBufferUsed);
|
||||
memcpy(buffer->BufferPointer(), this->outputBuffer, this->outputBufferUsed);
|
||||
memcpy(buffer->BufferPointer(), this->outputBuffer, this->outputBufferUsed * sizeof(float));
|
||||
this->outputBufferUsed = 0; /* mark consumed */
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user