MusicBuffer: expose the C++ API

This commit is contained in:
Max Kellermann
2013-09-26 22:09:42 +02:00
parent ce1d897575
commit 3216f4b257
11 changed files with 96 additions and 119 deletions

View File

@@ -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);