diff options
author | Max Kellermann <max@duempel.org> | 2013-09-26 22:09:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-26 22:21:56 +0200 |
commit | 3216f4b25753d566793173c7a4f53a126ac37744 (patch) | |
tree | 5a151a5c6f1750011279b50f0c8478787dac46e8 /src/DecoderControl.cxx | |
parent | ce1d8975751251d49581129193e09490ca650a8b (diff) | |
download | mpd-3216f4b25753d566793173c7a4f53a126ac37744.tar.gz mpd-3216f4b25753d566793173c7a4f53a126ac37744.tar.xz mpd-3216f4b25753d566793173c7a4f53a126ac37744.zip |
MusicBuffer: expose the C++ API
Diffstat (limited to '')
-rw-r--r-- | src/DecoderControl.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/DecoderControl.cxx b/src/DecoderControl.cxx index 8643bb916..5fea70908 100644 --- a/src/DecoderControl.cxx +++ b/src/DecoderControl.cxx @@ -105,10 +105,9 @@ decoder_control::IsCurrentSong(const Song *_song) const void decoder_control::Start(Song *_song, unsigned _start_ms, unsigned _end_ms, - music_buffer *_buffer, MusicPipe &_pipe) + MusicBuffer &_buffer, MusicPipe &_pipe) { assert(_song != NULL); - assert(_buffer != NULL); assert(_pipe.IsEmpty()); if (song != nullptr) @@ -117,7 +116,7 @@ decoder_control::Start(Song *_song, song = _song; start_ms = _start_ms; end_ms = _end_ms; - buffer = _buffer; + buffer = &_buffer; pipe = &_pipe; dc_command(this, DECODE_COMMAND_START); |