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

@@ -178,11 +178,11 @@ decoder_command_finished(struct decoder *decoder)
/* delete frames from the old song position */
if (decoder->chunk != NULL) {
music_buffer_return(dc->buffer, decoder->chunk);
dc->buffer->Return(decoder->chunk);
decoder->chunk = NULL;
}
dc->pipe->Clear(dc->buffer);
dc->pipe->Clear(*dc->buffer);
decoder->timestamp = dc->seek_where;
}