diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 19:19:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 19:19:55 +0200 |
commit | f1dd9c209c3a1cf6826d3a38b60f638e0faeadab (patch) | |
tree | 91e369d89eac8d298f1473c0dbcdf43065ae3b40 /src/audio.h | |
parent | bd81fd8b0c4f4f3c20533e21d6a837326eb8682b (diff) | |
download | mpd-f1dd9c209c3a1cf6826d3a38b60f638e0faeadab.tar.gz mpd-f1dd9c209c3a1cf6826d3a38b60f638e0faeadab.tar.xz mpd-f1dd9c209c3a1cf6826d3a38b60f638e0faeadab.zip |
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.
Diffstat (limited to 'src/audio.h')
-rw-r--r-- | src/audio.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/audio.h b/src/audio.h index 2d62407a9..bad9c2592 100644 --- a/src/audio.h +++ b/src/audio.h @@ -20,21 +20,21 @@ #define AUDIO_H #include "os_compat.h" -#include "audio_format.h" #define AUDIO_AO_DRIVER_DEFAULT "default" +struct audio_format; struct tag; struct client; -void copyAudioFormat(AudioFormat * dest, const AudioFormat * src); +void copyAudioFormat(struct audio_format *dest, const struct audio_format *src); -int cmpAudioFormat(const AudioFormat * dest, const AudioFormat * src); +int cmpAudioFormat(const struct audio_format *dest, const struct audio_format *src); -void getOutputAudioFormat(const AudioFormat * inFormat, - AudioFormat * outFormat); +void getOutputAudioFormat(const struct audio_format *inFormat, + struct audio_format *outFormat); -int parseAudioConfig(AudioFormat * audioFormat, char *conf); +int parseAudioConfig(struct audio_format *audioFormat, char *conf); /* make sure initPlayerData is called before this function!! */ void initAudioConfig(void); @@ -45,7 +45,7 @@ void initAudioDriver(void); void finishAudioDriver(void); -int openAudioDevice(const AudioFormat * audioFormat); +int openAudioDevice(const struct audio_format *audioFormat); int playAudio(const char *playChunk, size_t size); @@ -55,7 +55,7 @@ void closeAudioDevice(void); int isAudioDeviceOpen(void); -int isCurrentAudioFormat(const AudioFormat * audioFormat); +int isCurrentAudioFormat(const struct audio_format *audioFormat); void sendMetadataToAudioDevice(const struct tag *tag); |