diff options
author | Max Kellermann <max@duempel.org> | 2008-09-09 10:01:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-09 10:01:34 +0200 |
commit | 755d55075def8f87a56b377dc53b05be24183957 (patch) | |
tree | 2a0e0c200fad052030873a772d9585df11bd34d2 /src/audioOutput.c | |
parent | 40a9961bcd42746deec8f9b7af2b90e465ecb261 (diff) | |
download | mpd-755d55075def8f87a56b377dc53b05be24183957.tar.gz mpd-755d55075def8f87a56b377dc53b05be24183957.tar.xz mpd-755d55075def8f87a56b377dc53b05be24183957.zip |
output: renamed method names
No CamelCase. Also don't declare typedefs for the methods.
Diffstat (limited to 'src/audioOutput.c')
-rw-r--r-- | src/audioOutput.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c index 0a3e9abd8..6a8162cec 100644 --- a/src/audioOutput.c +++ b/src/audioOutput.c @@ -67,10 +67,10 @@ int initAudioOutput(struct audio_output *ao, ConfigParam * param) WARNING("Attempt to detect audio output device\n"); audio_output_plugins_for_each(plugin, i) { - if (plugin->testDefaultDeviceFunc) { + if (plugin->test_default_device) { WARNING("Attempting to detect a %s audio " "device\n", plugin->name); - if (plugin->testDefaultDeviceFunc() == 0) { + if (plugin->test_default_device() == 0) { WARNING("Successfully detected a %s " "audio device\n", plugin->name); break; @@ -110,7 +110,7 @@ int initAudioOutput(struct audio_output *ao, ConfigParam * param) copyAudioFormat(&ao->outAudioFormat, &ao->reqAudioFormat); } - if (plugin->initDriverFunc(ao, param) != 0) + if (plugin->init(ao, param) != 0) return 0; return 1; @@ -139,7 +139,7 @@ int openAudioOutput(struct audio_output *audioOutput, } if (!audioOutput->open) - ret = audioOutput->plugin->openDeviceFunc(audioOutput); + ret = audioOutput->plugin->open(audioOutput); audioOutput->sameInAndOutFormats = !cmpAudioFormat(&audioOutput->inAudioFormat, @@ -183,7 +183,7 @@ int playAudioOutput(struct audio_output *audioOutput, convertAudioFormat(audioOutput, &playChunk, &size); } - ret = audioOutput->plugin->playFunc(audioOutput, playChunk, size); + ret = audioOutput->plugin->play(audioOutput, playChunk, size); return ret; } @@ -191,20 +191,20 @@ int playAudioOutput(struct audio_output *audioOutput, void dropBufferedAudioOutput(struct audio_output *audioOutput) { if (audioOutput->open) - audioOutput->plugin->dropBufferedAudioFunc(audioOutput); + audioOutput->plugin->cancel(audioOutput); } void closeAudioOutput(struct audio_output *audioOutput) { if (audioOutput->open) - audioOutput->plugin->closeDeviceFunc(audioOutput); + audioOutput->plugin->close(audioOutput); } void finishAudioOutput(struct audio_output *audioOutput) { closeAudioOutput(audioOutput); - if (audioOutput->plugin->finishDriverFunc) - audioOutput->plugin->finishDriverFunc(audioOutput); + if (audioOutput->plugin->finish) + audioOutput->plugin->finish(audioOutput); if (audioOutput->convBuffer) free(audioOutput->convBuffer); } @@ -212,9 +212,8 @@ void finishAudioOutput(struct audio_output *audioOutput) void sendMetadataToAudioOutput(struct audio_output *audioOutput, const struct tag *tag) { - if (!audioOutput->plugin->sendMetdataFunc) - return; - audioOutput->plugin->sendMetdataFunc(audioOutput, tag); + if (audioOutput->plugin->send_tag) + audioOutput->plugin->send_tag(audioOutput, tag); } void printAllOutputPluginTypes(FILE * fp) |