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_mvp.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_mvp.c')
-rw-r--r-- | src/audioOutputs/audioOutput_mvp.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/audioOutputs/audioOutput_mvp.c b/src/audioOutputs/audioOutput_mvp.c index 59e40f472..c232b73b1 100644 --- a/src/audioOutputs/audioOutput_mvp.c +++ b/src/audioOutputs/audioOutput_mvp.c @@ -93,7 +93,8 @@ static int mvp_testDefault(void) return -1; } -static int mvp_initDriver(AudioOutput * audioOutput, ConfigParam * param) +static int mvp_initDriver(struct audio_output *audioOutput, + ConfigParam * param) { MvpData *md = xmalloc(sizeof(MvpData)); md->fd = -1; @@ -102,7 +103,7 @@ static int mvp_initDriver(AudioOutput * audioOutput, ConfigParam * param) return 0; } -static void mvp_finishDriver(AudioOutput * audioOutput) +static void mvp_finishDriver(struct audio_output *audioOutput) { MvpData *md = audioOutput->data; free(md); @@ -171,7 +172,7 @@ static int mvp_setPcmParams(MvpData * md, unsigned long rate, int channels, return 0; } -static int mvp_openDevice(AudioOutput * audioOutput) +static int mvp_openDevice(struct audio_output *audioOutput) { long long int stc = 0; MvpData *md = audioOutput->data; @@ -210,7 +211,7 @@ static int mvp_openDevice(AudioOutput * audioOutput) return 0; } -static void mvp_closeDevice(AudioOutput * audioOutput) +static void mvp_closeDevice(struct audio_output *audioOutput) { MvpData *md = audioOutput->data; if (md->fd >= 0) @@ -219,7 +220,7 @@ static void mvp_closeDevice(AudioOutput * audioOutput) audioOutput->open = 0; } -static void mvp_dropBufferedAudio(AudioOutput * audioOutput) +static void mvp_dropBufferedAudio(struct audio_output *audioOutput) { MvpData *md = audioOutput->data; if (md->fd >= 0) { @@ -230,7 +231,7 @@ static void mvp_dropBufferedAudio(AudioOutput * audioOutput) } } -static int mvp_playAudio(AudioOutput * audioOutput, +static int mvp_playAudio(struct audio_output *audioOutput, const char *playChunk, size_t size) { MvpData *md = audioOutput->data; @@ -256,7 +257,7 @@ static int mvp_playAudio(AudioOutput * audioOutput, return 0; } -AudioOutputPlugin mvpPlugin = { +struct audio_output_plugin mvpPlugin = { "mvp", mvp_testDefault, mvp_initDriver, |