aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_thread.c
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-07-19 16:42:19 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-07-19 17:15:21 +0100
commit05693e2d5d760e818fb7382f9bd528026f16aa51 (patch)
treea2f9cbcafda5f17f253367225e4a1bc37d4859dc /src/output_thread.c
parent37754559b8f934ce8d554e0d9f976d4f6eb376d9 (diff)
downloadmpd-05693e2d5d760e818fb7382f9bd528026f16aa51.tar.gz
mpd-05693e2d5d760e818fb7382f9bd528026f16aa51.tar.xz
mpd-05693e2d5d760e818fb7382f9bd528026f16aa51.zip
Add reverse_endian field to struct audio_format and handle conversion
Diffstat (limited to 'src/output_thread.c')
-rw-r--r--src/output_thread.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/output_thread.c b/src/output_thread.c
index 2592b2456..c7bd069b1 100644
--- a/src/output_thread.c
+++ b/src/output_thread.c
@@ -93,18 +93,20 @@ ao_open(struct audio_output *ao)
g_mutex_unlock(ao->mutex);
g_debug("opened plugin=%s name=\"%s\" "
- "audio_format=%u:%u:%u",
+ "audio_format=%u:%u:%u:%u",
ao->plugin->name, ao->name,
ao->out_audio_format.sample_rate,
ao->out_audio_format.bits,
- ao->out_audio_format.channels);
+ ao->out_audio_format.channels,
+ ao->out_audio_format.reverse_endian);
if (!audio_format_equals(&ao->in_audio_format,
&ao->out_audio_format))
- g_debug("converting from %u:%u:%u",
+ g_debug("converting from %u:%u:%u:%u",
ao->in_audio_format.sample_rate,
ao->in_audio_format.bits,
- ao->in_audio_format.channels);
+ ao->in_audio_format.channels,
+ ao->in_audio_format.reverse_endian);
}
static void