mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 09:40:01 +00:00
cellAudioOutConfigure: don't return error on unsupported config
Apparently the config simply isn't changed
This commit is contained in:
parent
8aa67114a9
commit
8c0a786918
@ -331,15 +331,12 @@ error_code cellAudioOutConfigure(u32 audioOut, vm::ptr<CellAudioOutConfiguration
|
||||
|
||||
audio_out_configuration::audio_out& out = cfg.out.at(audioOut);
|
||||
|
||||
if (out.sound_modes.cend() == std::find_if(out.sound_modes.cbegin(), out.sound_modes.cend(), [&config](const CellAudioOutSoundMode& mode)
|
||||
{
|
||||
return mode.channel == config->channel && mode.type == config->encoder && config->downMixer <= CELL_AUDIO_OUT_DOWNMIXER_TYPE_B;
|
||||
}))
|
||||
const bool found_mode = (out.sound_modes.cend() != std::find_if(out.sound_modes.cbegin(), out.sound_modes.cend(), [&config](const CellAudioOutSoundMode& mode)
|
||||
{
|
||||
return CELL_AUDIO_OUT_ERROR_ILLEGAL_CONFIGURATION; // TODO: confirm
|
||||
}
|
||||
return mode.channel == config->channel && mode.type == config->encoder && config->downMixer <= CELL_AUDIO_OUT_DOWNMIXER_TYPE_B;
|
||||
}));
|
||||
|
||||
if (out.channels != config->channel || out.encoder != config->encoder || out.downmixer != config->downMixer)
|
||||
if (found_mode && (out.channels != config->channel || out.encoder != config->encoder || out.downmixer != config->downMixer))
|
||||
{
|
||||
out.channels = config->channel;
|
||||
out.encoder = config->encoder;
|
||||
|
Loading…
x
Reference in New Issue
Block a user