From 554c708450dd5008c310902f67702b9727b944d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:06 +0200 Subject: moved struct AudioFormat to audio_format.h We want to expose the AudioFormat structure to plugins; remove some clutter by moving its declaration to a separate header file. --- src/audio.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/audio.h') diff --git a/src/audio.h b/src/audio.h index eab83916a..c9dea54d2 100644 --- a/src/audio.h +++ b/src/audio.h @@ -19,23 +19,12 @@ #ifndef AUDIO_H #define AUDIO_H -#include "mpd_types.h" #include "tag.h" #include "os_compat.h" +#include "audio_format.h" #define AUDIO_AO_DRIVER_DEFAULT "default" -typedef struct _AudioFormat { - volatile mpd_sint8 channels; - volatile mpd_uint32 sampleRate; - volatile mpd_sint8 bits; -} AudioFormat; - -static inline double audioFormatSizeToTime(const AudioFormat * af) -{ - return 8.0 / af->bits / af->channels / af->sampleRate; -} - void copyAudioFormat(AudioFormat * dest, const AudioFormat * src); int cmpAudioFormat(const AudioFormat * dest, const AudioFormat * src); -- cgit v1.2.3