aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-26 21:51:45 +0200
committerMax Kellermann <max@duempel.org>2013-09-26 21:51:45 +0200
commitce1d8975751251d49581129193e09490ca650a8b (patch)
tree27eda9989e35a74ccdade4924c47391ce2ee56b6 /src/DecoderControl.hxx
parent17e108a10a79a5cfb44981323442c92e35813e98 (diff)
downloadmpd-ce1d8975751251d49581129193e09490ca650a8b.tar.gz
mpd-ce1d8975751251d49581129193e09490ca650a8b.tar.xz
mpd-ce1d8975751251d49581129193e09490ca650a8b.zip
MusicPipe: expose the C++ API
Diffstat (limited to '')
-rw-r--r--src/DecoderControl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DecoderControl.hxx b/src/DecoderControl.hxx
index 98492c450..7f827d996 100644
--- a/src/DecoderControl.hxx
+++ b/src/DecoderControl.hxx
@@ -31,6 +31,7 @@
#include <assert.h>
struct Song;
+class MusicPipe;
enum decoder_state {
DECODE_STATE_STOP = 0,
@@ -127,7 +128,7 @@ struct decoder_control {
* The destination pipe for decoded chunks. The caller thread
* owns this object, and is responsible for freeing it.
*/
- struct music_pipe *pipe;
+ MusicPipe *pipe;
float replay_gain_db;
float replay_gain_prev_db;
@@ -287,7 +288,7 @@ struct decoder_control {
* the caller)
*/
void Start(Song *song, unsigned start_ms, unsigned end_ms,
- music_buffer *buffer, music_pipe *pipe);
+ music_buffer *buffer, MusicPipe &pipe);
void Stop();