diff options
author | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
commit | ba161ec572b98d3bcf9f735ff122133319fe896a (patch) | |
tree | a211690e3a8b7fce1fb6db540228122bead1f2bc /src/DecoderControl.hxx | |
parent | 43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff) | |
download | mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip |
song: convert header to C++
Diffstat (limited to '')
-rw-r--r-- | src/DecoderControl.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/DecoderControl.hxx b/src/DecoderControl.hxx index 09bf1b834..69de4800c 100644 --- a/src/DecoderControl.hxx +++ b/src/DecoderControl.hxx @@ -29,6 +29,8 @@ #include <assert.h> +struct Song; + enum decoder_state { DECODE_STATE_STOP = 0, DECODE_STATE_START, @@ -96,7 +98,7 @@ struct decoder_control { * This is a duplicate, and must be freed when this attribute * is cleared. */ - struct song *song; + Song *song; /** * The initial seek position (in milliseconds), e.g. to the @@ -260,10 +262,10 @@ struct decoder_control { * Caller must lock the object. */ gcc_pure - bool IsCurrentSong(const struct song *_song) const; + bool IsCurrentSong(const Song *_song) const; gcc_pure - bool LockIsCurrentSong(const struct song *_song) const { + bool LockIsCurrentSong(const Song *_song) const { Lock(); const bool result = IsCurrentSong(_song); Unlock(); @@ -280,7 +282,7 @@ struct decoder_control { * @param pipe the pipe which receives the decoded chunks (owned by * the caller) */ - void Start(struct song *song, unsigned start_ms, unsigned end_ms, + void Start(Song *song, unsigned start_ms, unsigned end_ms, music_buffer *buffer, music_pipe *pipe); void Stop(); |