diff options
author | Max Kellermann <max@duempel.org> | 2008-09-09 10:03:24 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-09 10:03:24 +0200 |
commit | f9316fbbbef04206be703ff3e7a2e175a958bff3 (patch) | |
tree | c0dc908eaa911e34f953760dc0d13860c4336454 /src/output_control.c | |
parent | e2c916e6ca0e56a3a3a3112a9d5dc3f883e73287 (diff) | |
download | mpd-f9316fbbbef04206be703ff3e7a2e175a958bff3.tar.gz mpd-f9316fbbbef04206be703ff3e7a2e175a958bff3.tar.xz mpd-f9316fbbbef04206be703ff3e7a2e175a958bff3.zip |
output: renamed the functions in output_control.c
Getting rid of CamcelCase, again.
Diffstat (limited to 'src/output_control.c')
-rw-r--r-- | src/output_control.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/output_control.c b/src/output_control.c index a6a8cac74..8a5e14e00 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -22,8 +22,8 @@ #include "utils.h" #include "audio.h" -int openAudioOutput(struct audio_output *audioOutput, - const struct audio_format *audioFormat) +int audio_output_open(struct audio_output *audioOutput, + const struct audio_format *audioFormat) { int ret = 0; @@ -41,7 +41,7 @@ int openAudioOutput(struct audio_output *audioOutput, copyAudioFormat(&audioOutput->outAudioFormat, &audioOutput->inAudioFormat); if (audioOutput->open) - closeAudioOutput(audioOutput); + audio_output_close(audioOutput); } if (!audioOutput->open) @@ -77,8 +77,8 @@ static void convertAudioFormat(struct audio_output *audioOutput, *chunkArgPtr = audioOutput->convBuffer; } -int playAudioOutput(struct audio_output *audioOutput, - const char *playChunk, size_t size) +int audio_output_play(struct audio_output *audioOutput, + const char *playChunk, size_t size) { int ret; @@ -94,29 +94,29 @@ int playAudioOutput(struct audio_output *audioOutput, return ret; } -void dropBufferedAudioOutput(struct audio_output *audioOutput) +void audio_output_cancel(struct audio_output *audioOutput) { if (audioOutput->open) audioOutput->plugin->cancel(audioOutput); } -void closeAudioOutput(struct audio_output *audioOutput) +void audio_output_close(struct audio_output *audioOutput) { if (audioOutput->open) audioOutput->plugin->close(audioOutput); } -void finishAudioOutput(struct audio_output *audioOutput) +void audio_output_finish(struct audio_output *audioOutput) { - closeAudioOutput(audioOutput); + audio_output_close(audioOutput); if (audioOutput->plugin->finish) audioOutput->plugin->finish(audioOutput); if (audioOutput->convBuffer) free(audioOutput->convBuffer); } -void sendMetadataToAudioOutput(struct audio_output *audioOutput, - const struct tag *tag) +void audio_output_send_tag(struct audio_output *audioOutput, + const struct tag *tag) { if (audioOutput->plugin->send_tag) audioOutput->plugin->send_tag(audioOutput, tag); |