mirror of https://github.com/FreeRDP/FreeRDP
[codec,dsp] reorganize experimental codecs
* Remove ALAW/µULAW from sound channels * Make everything except PCM and AAC experimental
This commit is contained in:
parent
ce2605fad2
commit
ae3330d63d
|
@ -75,12 +75,6 @@ static snd_pcm_format_t audin_alsa_format(UINT32 wFormatTag, UINT32 bitPerChanne
|
|||
return SND_PCM_FORMAT_UNKNOWN;
|
||||
}
|
||||
|
||||
case WAVE_FORMAT_ALAW:
|
||||
return SND_PCM_FORMAT_A_LAW;
|
||||
|
||||
case WAVE_FORMAT_MULAW:
|
||||
return SND_PCM_FORMAT_MU_LAW;
|
||||
|
||||
default:
|
||||
return SND_PCM_FORMAT_UNKNOWN;
|
||||
}
|
||||
|
|
|
@ -88,12 +88,6 @@ static UINT32 audin_oss_get_format(const AUDIO_FORMAT* format)
|
|||
}
|
||||
|
||||
break;
|
||||
|
||||
case WAVE_FORMAT_ALAW:
|
||||
return AFMT_A_LAW;
|
||||
|
||||
case WAVE_FORMAT_MULAW:
|
||||
return AFMT_MU_LAW;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -280,14 +280,6 @@ static UINT audin_pulse_set_format(IAudinDevice* device, const AUDIO_FORMAT* for
|
|||
|
||||
break;
|
||||
|
||||
case WAVE_FORMAT_ALAW: /* A-LAW */
|
||||
sample_spec.format = PA_SAMPLE_ALAW;
|
||||
break;
|
||||
|
||||
case WAVE_FORMAT_MULAW: /* U-LAW */
|
||||
sample_spec.format = PA_SAMPLE_ULAW;
|
||||
break;
|
||||
|
||||
default:
|
||||
return ERROR_INTERNAL_ERROR;
|
||||
}
|
||||
|
|
|
@ -86,12 +86,6 @@ static int rdpsnd_oss_get_format(const AUDIO_FORMAT* format)
|
|||
}
|
||||
|
||||
break;
|
||||
|
||||
case WAVE_FORMAT_ALAW:
|
||||
return AFMT_A_LAW;
|
||||
|
||||
case WAVE_FORMAT_MULAW:
|
||||
return AFMT_MU_LAW;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -327,14 +327,6 @@ static BOOL rdpsnd_pulse_set_format_spec(rdpsndPulsePlugin* pulse, const AUDIO_F
|
|||
|
||||
break;
|
||||
|
||||
case WAVE_FORMAT_ALAW:
|
||||
sample_spec.format = PA_SAMPLE_ALAW;
|
||||
break;
|
||||
|
||||
case WAVE_FORMAT_MULAW:
|
||||
sample_spec.format = PA_SAMPLE_ULAW;
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -70,19 +70,17 @@ static BOOL ffmpeg_codec_is_filtered(enum AVCodecID id, BOOL encoder)
|
|||
case AV_CODEC_ID_MP3:
|
||||
case AV_CODEC_ID_ADPCM_MS:
|
||||
case AV_CODEC_ID_G723_1:
|
||||
case AV_CODEC_ID_GSM_MS:
|
||||
case AV_CODEC_ID_PCM_ALAW:
|
||||
case AV_CODEC_ID_PCM_MULAW:
|
||||
return TRUE;
|
||||
#endif
|
||||
|
||||
case AV_CODEC_ID_NONE:
|
||||
return TRUE;
|
||||
|
||||
case AV_CODEC_ID_GSM_MS:
|
||||
case AV_CODEC_ID_AAC:
|
||||
case AV_CODEC_ID_AAC_LATM:
|
||||
#if !defined(WITH_DSP_EXPERIMENTAL)
|
||||
if (encoder)
|
||||
return TRUE;
|
||||
#endif
|
||||
return FALSE;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue