diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 22:41:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 22:41:22 +0200 |
commit | 3b09c54b6769c7e0c8152dde2850a88f51e2f3d9 (patch) | |
tree | 30f28b2bfb230ce6674a08231ead1d3eac032164 /src/audioOutputs/audioOutput_alsa.c | |
parent | bed2a49fe97b8f070ace2dd37909bb06540c66bd (diff) | |
download | mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.tar.gz mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.tar.xz mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.zip |
output: renamed typedef AudioOutput to struct audio_output
Also rename AudioOutputPlugin to struct audio_output_plugin, and use
forward declarations to reduce include dependencies.
Diffstat (limited to 'src/audioOutputs/audioOutput_alsa.c')
-rw-r--r-- | src/audioOutputs/audioOutput_alsa.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c index 3021d59da..9917c4629 100644 --- a/src/audioOutputs/audioOutput_alsa.c +++ b/src/audioOutputs/audioOutput_alsa.c @@ -72,7 +72,8 @@ static void freeAlsaData(AlsaData * ad) free(ad); } -static int alsa_initDriver(AudioOutput * audioOutput, ConfigParam * param) +static int alsa_initDriver(struct audio_output *audioOutput, + ConfigParam * param) { AlsaData *ad = newAlsaData(); @@ -94,7 +95,7 @@ static int alsa_initDriver(AudioOutput * audioOutput, ConfigParam * param) return 0; } -static void alsa_finishDriver(AudioOutput * audioOutput) +static void alsa_finishDriver(struct audio_output *audioOutput) { AlsaData *ad = audioOutput->data; @@ -119,7 +120,7 @@ static int alsa_testDefault(void) return 0; } -static int alsa_openDevice(AudioOutput * audioOutput) +static int alsa_openDevice(struct audio_output *audioOutput) { AlsaData *ad = audioOutput->data; struct audio_format *audioFormat = &audioOutput->outAudioFormat; @@ -358,14 +359,14 @@ static int alsa_errorRecovery(AlsaData * ad, int err) return err; } -static void alsa_dropBufferedAudio(AudioOutput * audioOutput) +static void alsa_dropBufferedAudio(struct audio_output *audioOutput) { AlsaData *ad = audioOutput->data; alsa_errorRecovery(ad, snd_pcm_drop(ad->pcmHandle)); } -static void alsa_closeDevice(AudioOutput * audioOutput) +static void alsa_closeDevice(struct audio_output *audioOutput) { AlsaData *ad = audioOutput->data; @@ -380,7 +381,7 @@ static void alsa_closeDevice(AudioOutput * audioOutput) audioOutput->open = 0; } -static int alsa_playAudio(AudioOutput * audioOutput, +static int alsa_playAudio(struct audio_output *audioOutput, const char *playChunk, size_t size) { AlsaData *ad = audioOutput->data; @@ -412,7 +413,7 @@ static int alsa_playAudio(AudioOutput * audioOutput, return 0; } -AudioOutputPlugin alsaPlugin = { +struct audio_output_plugin alsaPlugin = { "alsa", alsa_testDefault, alsa_initDriver, |