aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_format.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-21 19:37:33 +0100
committerMax Kellermann <max@duempel.org>2012-03-22 00:42:12 +0100
commitb99ecb4dc96f45c0e0ca4b47b82efea57a21f016 (patch)
treec3cf9e67fa24bfb8f0f82010c05fa1f5aead67aa /src/audio_format.h
parent208a96b211e433a7064bdaa40b31f6a61bb60419 (diff)
downloadmpd-b99ecb4dc96f45c0e0ca4b47b82efea57a21f016.tar.gz
mpd-b99ecb4dc96f45c0e0ca4b47b82efea57a21f016.tar.xz
mpd-b99ecb4dc96f45c0e0ca4b47b82efea57a21f016.zip
audio_format: remove the packed S24 format
For simplicity, the MPD core should not have to deal with packing. It is rarely used, and those plugins that need it should use the pcm_export library instead.
Diffstat (limited to 'src/audio_format.h')
-rw-r--r--src/audio_format.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/audio_format.h b/src/audio_format.h
index 7170b9756..43d624243 100644
--- a/src/audio_format.h
+++ b/src/audio_format.h
@@ -32,11 +32,6 @@ enum sample_format {
SAMPLE_FORMAT_S16,
/**
- * Signed 24 bit integer samples, without padding.
- */
- SAMPLE_FORMAT_S24,
-
- /**
* Signed 24 bit integer samples, packed in 32 bit integers
* (the most significant byte is filled with the sign bit).
*/
@@ -175,7 +170,6 @@ audio_valid_sample_format(enum sample_format format)
switch (format) {
case SAMPLE_FORMAT_S8:
case SAMPLE_FORMAT_S16:
- case SAMPLE_FORMAT_S24:
case SAMPLE_FORMAT_S24_P32:
case SAMPLE_FORMAT_S32:
case SAMPLE_FORMAT_FLOAT:
@@ -248,9 +242,6 @@ sample_format_size(enum sample_format format)
case SAMPLE_FORMAT_S16:
return 2;
- case SAMPLE_FORMAT_S24:
- return 3;
-
case SAMPLE_FORMAT_S24_P32:
case SAMPLE_FORMAT_S32:
case SAMPLE_FORMAT_FLOAT: