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.
This commit is contained in:
@@ -211,7 +211,6 @@ get_bitformat(enum sample_format sample_format)
|
||||
case SAMPLE_FORMAT_UNDEFINED:
|
||||
case SAMPLE_FORMAT_DSD:
|
||||
case SAMPLE_FORMAT_DSD_OVER_USB:
|
||||
case SAMPLE_FORMAT_S24:
|
||||
return SND_PCM_FORMAT_UNKNOWN;
|
||||
|
||||
case SAMPLE_FORMAT_S8:
|
||||
|
||||
@@ -434,7 +434,6 @@ sample_format_to_oss(enum sample_format format)
|
||||
case SAMPLE_FORMAT_FLOAT:
|
||||
case SAMPLE_FORMAT_DSD:
|
||||
case SAMPLE_FORMAT_DSD_OVER_USB:
|
||||
case SAMPLE_FORMAT_S24:
|
||||
return AFMT_QUERY;
|
||||
|
||||
case SAMPLE_FORMAT_S8:
|
||||
|
||||
@@ -167,10 +167,6 @@ roar_use_audio_format(struct roar_audio_info *info,
|
||||
info->bits = 16;
|
||||
break;
|
||||
|
||||
case SAMPLE_FORMAT_S24:
|
||||
info->bits = 24;
|
||||
break;
|
||||
|
||||
case SAMPLE_FORMAT_S24_P32:
|
||||
info->bits = 32;
|
||||
audio_format->format = SAMPLE_FORMAT_S32;
|
||||
|
||||
@@ -161,7 +161,6 @@ winmm_output_open(struct audio_output *ao, struct audio_format *audio_format,
|
||||
case SAMPLE_FORMAT_S16:
|
||||
break;
|
||||
|
||||
case SAMPLE_FORMAT_S24:
|
||||
case SAMPLE_FORMAT_S24_P32:
|
||||
case SAMPLE_FORMAT_S32:
|
||||
case SAMPLE_FORMAT_UNDEFINED:
|
||||
|
||||
Reference in New Issue
Block a user