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

@@ -73,12 +73,12 @@ MusicPipe::Shift()
}
void
MusicPipe::Clear(music_buffer *buffer)
MusicPipe::Clear(MusicBuffer &buffer)
{
music_chunk *chunk;
while ((chunk = Shift()) != nullptr)
music_buffer_return(buffer, chunk);
buffer.Return(chunk);
}
void