cellAudio: use format instead of downmix

This commit is contained in:
Megamouse 2022-05-28 17:45:50 +02:00
parent c42ff338e7
commit 72e1e242a3
15 changed files with 271 additions and 176 deletions

View file

@ -201,7 +201,7 @@ struct cell_audio_config
s64 time_stretching_threshold = 0;
bool convert_to_s16 = false;
bool dump_to_file = false;
audio_downmix downmix = audio_downmix::downmix_to_stereo;
audio_format format = audio_format::lpcm_2_48khz;
audio_renderer renderer = audio_renderer::null;
audio_provider provider = audio_provider::none;
};
@ -348,7 +348,7 @@ private:
void reset_ports(s32 offset = 0);
void advance(u64 timestamp);
std::tuple<u32, u32, u32, u32> count_port_buffer_tags();
template <audio_downmix downmix>
template <AudioChannelCnt downmix>
void mix(float *out_buffer, s32 offset = 0);
void finish_port_volume_stepping();