mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
Update audioout.cpp
This commit is contained in:
parent
10d22f4d73
commit
d59211e62f
@ -523,9 +523,24 @@ s32 PS4_SYSV_ABI sceAudioOutSetVolume(s32 handle, s32 flag, s32* vol) {
|
||||
}
|
||||
port.impl->SetVolume(port.volume);
|
||||
}
|
||||
AdjustVol();
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
void AdjustVol() {
|
||||
if (audio == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < ports_out.size(); i++) {
|
||||
std::unique_lock lock{ports_out[i].mutex};
|
||||
if (!ports_out[i].IsOpen()) {
|
||||
continue;
|
||||
}
|
||||
ports_out[i].impl->SetVolume(ports_out[i].volume);
|
||||
}
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceAudioOutSetVolumeDown() {
|
||||
LOG_ERROR(Lib_AudioOut, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user