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.
This commit is contained in:
Max Kellermann
2012-03-21 20:43:33 +01:00
parent 921cc3e5db
commit 5b61e077e0
4 changed files with 39 additions and 4 deletions
+1 -1
View File
@@ -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;
+1
View File
@@ -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