From ce1d8975751251d49581129193e09490ca650a8b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Sep 2013 21:51:45 +0200 Subject: MusicPipe: expose the C++ API --- src/DecoderControl.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/DecoderControl.hxx') 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 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(); -- cgit v1.2.3