diff options
author | Max Kellermann <max@duempel.org> | 2013-09-26 21:51:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-26 21:51:45 +0200 |
commit | ce1d8975751251d49581129193e09490ca650a8b (patch) | |
tree | 27eda9989e35a74ccdade4924c47391ce2ee56b6 /src/DecoderControl.cxx | |
parent | 17e108a10a79a5cfb44981323442c92e35813e98 (diff) | |
download | mpd-ce1d8975751251d49581129193e09490ca650a8b.tar.gz mpd-ce1d8975751251d49581129193e09490ca650a8b.tar.xz mpd-ce1d8975751251d49581129193e09490ca650a8b.zip |
MusicPipe: expose the C++ API
Diffstat (limited to 'src/DecoderControl.cxx')
-rw-r--r-- | src/DecoderControl.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/DecoderControl.cxx b/src/DecoderControl.cxx index 6721bd55a..8643bb916 100644 --- a/src/DecoderControl.cxx +++ b/src/DecoderControl.cxx @@ -105,12 +105,11 @@ decoder_control::IsCurrentSong(const Song *_song) const void decoder_control::Start(Song *_song, unsigned _start_ms, unsigned _end_ms, - music_buffer *_buffer, music_pipe *_pipe) + music_buffer *_buffer, MusicPipe &_pipe) { assert(_song != NULL); assert(_buffer != NULL); - assert(_pipe != NULL); - assert(music_pipe_empty(_pipe)); + assert(_pipe.IsEmpty()); if (song != nullptr) song->Free(); @@ -119,7 +118,7 @@ decoder_control::Start(Song *_song, start_ms = _start_ms; end_ms = _end_ms; buffer = _buffer; - pipe = _pipe; + pipe = &_pipe; dc_command(this, DECODE_COMMAND_START); } |