aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderAPI.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 21:38:46 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 21:38:46 +0100
commite9b71a0d2846321dcf3f985b9f6332d051374edd (patch)
treecc916958e67731f68e496459383a913e28509bda /src/DecoderAPI.cxx
parentefbfe66f21a8865454bc7a9e32305c84c09ba4be (diff)
downloadmpd-e9b71a0d2846321dcf3f985b9f6332d051374edd.tar.gz
mpd-e9b71a0d2846321dcf3f985b9f6332d051374edd.tar.xz
mpd-e9b71a0d2846321dcf3f985b9f6332d051374edd.zip
MusicChunk: move functions to methods
Diffstat (limited to 'src/DecoderAPI.cxx')
-rw-r--r--src/DecoderAPI.cxx10
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);