From f1dd9c209c3a1cf6826d3a38b60f638e0faeadab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 19:19:55 +0200 Subject: audio_format: converted typedef AudioFormat to struct audio_format Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies. --- src/audio_format.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/audio_format.h') diff --git a/src/audio_format.h b/src/audio_format.h index ade9d881..fa892b84 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -21,18 +21,18 @@ #include "mpd_types.h" -typedef struct _AudioFormat { +struct audio_format { mpd_sint8 channels; mpd_uint32 sampleRate; mpd_sint8 bits; -} AudioFormat; +}; -static inline double audio_format_time_to_size(const AudioFormat * af) +static inline double audio_format_time_to_size(const struct audio_format *af) { return af->sampleRate * af->bits * af->channels / 8.0; } -static inline double audioFormatSizeToTime(const AudioFormat * af) +static inline double audioFormatSizeToTime(const struct audio_format *af) { return 8.0 / af->bits / af->channels / af->sampleRate; } -- cgit v1.2.3