From d1e7b4e38136f9342aad76c685a13adf0e69f869 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Aug 2013 21:00:50 +0200 Subject: audio_format: convert to C++ --- src/MusicChunk.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/MusicChunk.hxx') diff --git a/src/MusicChunk.hxx b/src/MusicChunk.hxx index a15b3a702..23c3b7423 100644 --- a/src/MusicChunk.hxx +++ b/src/MusicChunk.hxx @@ -23,7 +23,7 @@ #include "replay_gain_info.h" #ifndef NDEBUG -#include "audio_format.h" +#include "AudioFormat.hxx" #endif #include @@ -33,7 +33,7 @@ enum { CHUNK_SIZE = 4096, }; -struct audio_format; +struct AudioFormat; struct Tag; /** @@ -90,7 +90,7 @@ struct music_chunk { char data[CHUNK_SIZE]; #ifndef NDEBUG - struct audio_format audio_format; + AudioFormat audio_format; #endif music_chunk() @@ -111,7 +111,7 @@ struct music_chunk { * specified audio_format. */ gcc_pure - bool CheckFormat(const struct audio_format &audio_format) const; + bool CheckFormat(AudioFormat audio_format) const; #endif /** @@ -128,7 +128,7 @@ struct music_chunk { * here * @return a writable buffer, or NULL if the chunk is full */ - void *Write(const struct audio_format &af, + void *Write(AudioFormat af, float data_time, uint16_t bit_rate, size_t *max_length_r); @@ -142,7 +142,7 @@ struct music_chunk { * @param length the number of bytes which were appended * @return true if the chunk is full */ - bool Expand(const struct audio_format &af, size_t length); + bool Expand(AudioFormat af, size_t length); }; void -- cgit v1.2.3