aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-10 21:50:51 +0100
committerMax Kellermann <max@duempel.org>2009-02-10 21:50:51 +0100
commit61e30759812e6996eb02bacf58607ec53cb0f577 (patch)
tree47599b984c3f87a404daa70a2159477f08afae9b /src/output_thread.c
parent744702f266e52defb896b220c7e4eda97cf64b2d (diff)
downloadmpd-61e30759812e6996eb02bacf58607ec53cb0f577.tar.gz
mpd-61e30759812e6996eb02bacf58607ec53cb0f577.tar.xz
mpd-61e30759812e6996eb02bacf58607ec53cb0f577.zip
output_api: no CamelCase in struct audio_output
Renamed audio_output struct members.
Diffstat (limited to '')
-rw-r--r--src/output_thread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/output_thread.c b/src/output_thread.c
index 883dddcaf..ef636180f 100644
--- a/src/output_thread.c
+++ b/src/output_thread.c
@@ -46,10 +46,10 @@ static void ao_play(struct audio_output *ao)
assert(size > 0);
- if (!audio_format_equals(&ao->inAudioFormat, &ao->outAudioFormat)) {
- data = pcm_convert(&ao->convState,
- &ao->inAudioFormat, data, size,
- &ao->outAudioFormat, &size);
+ if (!audio_format_equals(&ao->in_audio_format, &ao->out_audio_format)) {
+ data = pcm_convert(&ao->convert_state,
+ &ao->in_audio_format, data, size,
+ &ao->out_audio_format, &size);
/* under certain circumstances, pcm_convert() may
return an empty buffer - this condition should be
@@ -63,7 +63,7 @@ static void ao_play(struct audio_output *ao)
if (!ret) {
ao->plugin->cancel(ao->data);
ao->plugin->close(ao->data);
- pcm_convert_deinit(&ao->convState);
+ pcm_convert_deinit(&ao->convert_state);
ao->open = false;
}
@@ -84,7 +84,7 @@ static void ao_pause(struct audio_output *ao)
ret = ao->plugin->pause(ao->data);
if (!ret) {
ao->plugin->close(ao->data);
- pcm_convert_deinit(&ao->convState);
+ pcm_convert_deinit(&ao->convert_state);
ao->open = false;
}
} while (ao->command == AO_COMMAND_NONE);
@@ -109,9 +109,9 @@ static gpointer audio_output_task(gpointer arg)
case AO_COMMAND_OPEN:
assert(!ao->open);
- pcm_convert_init(&ao->convState);
+ pcm_convert_init(&ao->convert_state);
ret = ao->plugin->open(ao->data,
- &ao->outAudioFormat);
+ &ao->out_audio_format);
assert(!ao->open);
if (ret == true)