MusicChunk: return WritableBuffer

This commit is contained in:
Max Kellermann
2013-10-28 17:10:12 +01:00
parent 5ee5a89a7f
commit de1261ba28
3 changed files with 15 additions and 16 deletions

View File

@@ -21,6 +21,7 @@
#define MPD_MUSIC_CHUNK_HXX
#include "ReplayGainInfo.hxx"
#include "util/WritableBuffer.hxx"
#ifndef NDEBUG
#include "AudioFormat.hxx"
@@ -126,9 +127,8 @@ struct music_chunk {
* here
* @return a writable buffer, or nullptr if the chunk is full
*/
void *Write(AudioFormat af,
float data_time, uint16_t bit_rate,
size_t *max_length_r);
WritableBuffer<void> Write(AudioFormat af,
float data_time, uint16_t bit_rate);
/**
* Increases the length of the chunk after the caller has written to