From 3216f4b25753d566793173c7a4f53a126ac37744 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Sep 2013 22:09:42 +0200 Subject: MusicBuffer: expose the C++ API --- src/MusicPipe.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/MusicPipe.cxx') 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 -- cgit v1.2.3