diff options
author | Max Kellermann <max@duempel.org> | 2013-08-03 21:00:50 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-03 21:37:56 +0200 |
commit | d1e7b4e38136f9342aad76c685a13adf0e69f869 (patch) | |
tree | 49643b937ddfe735511b566a71398da5a945d7aa /src/MusicChunk.hxx | |
parent | 67f591a9ce60651da41afc499bd9a22e25314e35 (diff) | |
download | mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.gz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.xz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.zip |
audio_format: convert to C++
Diffstat (limited to '')
-rw-r--r-- | src/MusicChunk.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
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 <stdint.h> @@ -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 |