summaryrefslogtreecommitdiff
path: root/src/MusicPipe.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-26 22:09:42 +0200
committerMax Kellermann <max@duempel.org>2013-09-26 22:21:56 +0200
commit3216f4b25753d566793173c7a4f53a126ac37744 (patch)
tree5a151a5c6f1750011279b50f0c8478787dac46e8 /src/MusicPipe.cxx
parentce1d8975751251d49581129193e09490ca650a8b (diff)
MusicBuffer: expose the C++ API
Diffstat (limited to 'src/MusicPipe.cxx')
-rw-r--r--src/MusicPipe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MusicPipe.cxx b/src/MusicPipe.cxx
index 2ff45748f..eadf526e1 100644
--- a/src/MusicPipe.cxx
+++ b/src/MusicPipe.cxx
@@ -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