From e9b71a0d2846321dcf3f985b9f6332d051374edd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 4 Jan 2013 21:38:46 +0100 Subject: MusicChunk: move functions to methods --- src/DecoderAPI.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/DecoderAPI.cxx') diff --git a/src/DecoderAPI.cxx b/src/DecoderAPI.cxx index 015d64d2..9ea22200 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); -- cgit v1.2.3