aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-21 20:43:33 +0100
committerMax Kellermann <max@duempel.org>2012-03-22 00:33:40 +0100
commit5b61e077e0e3d84f17a410d7327e2a7a73613aad (patch)
treebb079cf521666bef65c64ae0362b1e7618ee64fa /src/output
parent921cc3e5db7a07ba683dae7834c6cb2e03a6a8f3 (diff)
downloadmpd-5b61e077e0e3d84f17a410d7327e2a7a73613aad.tar.gz
mpd-5b61e077e0e3d84f17a410d7327e2a7a73613aad.tar.xz
mpd-5b61e077e0e3d84f17a410d7327e2a7a73613aad.zip
pcm_export: add option "pack"
Converts padded 24 bit samples to packed 24 bit samples. Will replace the packed S24 sample format, which is not used internally.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/alsa_output_plugin.c2
-rw-r--r--src/output/oss_output_plugin.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/output/alsa_output_plugin.c b/src/output/alsa_output_plugin.c
index 3788ba0f2..f8c34093b 100644
--- a/src/output/alsa_output_plugin.c
+++ b/src/output/alsa_output_plugin.c
@@ -525,7 +525,7 @@ configure_hw:
ad->period_position = 0;
pcm_export_open(&ad->export, audio_format->format,
- reverse_endian);
+ false, reverse_endian);
return true;
diff --git a/src/output/oss_output_plugin.c b/src/output/oss_output_plugin.c
index c32fceade..154930b38 100644
--- a/src/output/oss_output_plugin.c
+++ b/src/output/oss_output_plugin.c
@@ -536,6 +536,7 @@ oss_probe_sample_format(int fd, enum sample_format sample_format,
#ifdef AFMT_S24_PACKED
pcm_export_open(export, sample_format,
+ false,
oss_format == AFMT_S24_PACKED &&
G_BYTE_ORDER != G_LITTLE_ENDIAN);
#endif