Implement auto output resampling (if requested)

If there are for example more than one audio outputs and they have
different sample rates or channels and such, this will allow automatic
conversion of that audio to the request formats/channels/rates (but only
if requested).
This commit is contained in:
jp9000
2014-02-17 20:23:20 -07:00
parent 860a43c31f
commit 30094a5919
2 changed files with 71 additions and 5 deletions

View File

@@ -576,7 +576,7 @@ static bool ffmpeg_output_start(void *data)
struct audio_convert_info aci;
aci.samples_per_sec = SPS_TODO;
aci.format = AUDIO_FORMAT_FLOAT;
aci.format = AUDIO_FORMAT_FLOAT_PLANAR;
aci.speakers = SPEAKERS_STEREO;
struct video_convert_info vci;