aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:06 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:06 +0200
commit1b845f94a0a75bd6cc21ac666c9c0ab04362dd80 (patch)
treee6a1eb0e1add13eff676076250c1f82f0685f23b /src/audio.h
parent08bdb43bef5173f045a868289b05a4a698ab811e (diff)
downloadmpd-1b845f94a0a75bd6cc21ac666c9c0ab04362dd80.tar.gz
mpd-1b845f94a0a75bd6cc21ac666c9c0ab04362dd80.tar.xz
mpd-1b845f94a0a75bd6cc21ac666c9c0ab04362dd80.zip
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.
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h13
1 files changed, 1 insertions, 12 deletions
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);