aboutsummaryrefslogtreecommitdiffstats
path: root/src/MusicChunk.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-28 17:10:12 +0100
committerMax Kellermann <max@duempel.org>2013-10-28 17:10:12 +0100
commitde1261ba28fbf88a31fda1483578130030a464d5 (patch)
treec69c2f2f2b15193fd6a249e7a8d97637026d0eda /src/MusicChunk.hxx
parent5ee5a89a7f4e765be0a059bc8e66c16c443484b6 (diff)
downloadmpd-de1261ba28fbf88a31fda1483578130030a464d5.tar.gz
mpd-de1261ba28fbf88a31fda1483578130030a464d5.tar.xz
mpd-de1261ba28fbf88a31fda1483578130030a464d5.zip
MusicChunk: return WritableBuffer
Diffstat (limited to 'src/MusicChunk.hxx')
-rw-r--r--src/MusicChunk.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MusicChunk.hxx b/src/MusicChunk.hxx
index 96db5a699..ecd57090b 100644
--- a/src/MusicChunk.hxx
+++ b/src/MusicChunk.hxx
@@ -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