diff options
Diffstat (limited to 'src/DecoderAPI.cxx')
-rw-r--r-- | src/DecoderAPI.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DecoderAPI.cxx b/src/DecoderAPI.cxx index 015d64d2b..9ea222005 100644 --- a/src/DecoderAPI.cxx +++ b/src/DecoderAPI.cxx @@ -429,10 +429,10 @@ decoder_data(struct decoder *decoder, return dc->command; } - void *dest = music_chunk_write(chunk, &dc->out_audio_format, - decoder->timestamp - - dc->song->start_ms / 1000.0, - kbit_rate, &nbytes); + void *dest = chunk->Write(dc->out_audio_format, + decoder->timestamp - + dc->song->start_ms / 1000.0, + kbit_rate, &nbytes); if (dest == NULL) { /* the chunk is full, flush it */ decoder_flush_chunk(decoder); @@ -451,7 +451,7 @@ decoder_data(struct decoder *decoder, /* expand the music pipe chunk */ - full = music_chunk_expand(chunk, &dc->out_audio_format, nbytes); + full = chunk->Expand(dc->out_audio_format, nbytes); if (full) { /* the chunk is full, flush it */ decoder_flush_chunk(decoder); |