mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
add clear() for all channel release
This commit is contained in:
parent
b5a1f869b8
commit
57dfd2fe90
1 changed files with 3 additions and 0 deletions
|
@ -184,6 +184,7 @@ u32 sceAudioChRelease(u32 chan) {
|
||||||
return SCE_ERROR_AUDIO_CHANNEL_NOT_RESERVED;
|
return SCE_ERROR_AUDIO_CHANNEL_NOT_RESERVED;
|
||||||
}
|
}
|
||||||
DEBUG_LOG(HLE, "sceAudioChRelease(%i)", chan);
|
DEBUG_LOG(HLE, "sceAudioChRelease(%i)", chan);
|
||||||
|
chans[chan].clear();
|
||||||
chans[chan].reserved = false;
|
chans[chan].reserved = false;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -271,6 +272,7 @@ u32 sceAudioOutput2GetRestSample(){
|
||||||
|
|
||||||
u32 sceAudioOutput2Release(){
|
u32 sceAudioOutput2Release(){
|
||||||
DEBUG_LOG(HLE,"sceAudioOutput2Release()");
|
DEBUG_LOG(HLE,"sceAudioOutput2Release()");
|
||||||
|
chans[0].clear();
|
||||||
chans[0].reserved = false;
|
chans[0].reserved = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -302,6 +304,7 @@ u32 sceAudioSRCChReserve(u32 sampleCount, u32 freq, u32 format) {
|
||||||
|
|
||||||
u32 sceAudioSRCChRelease() {
|
u32 sceAudioSRCChRelease() {
|
||||||
DEBUG_LOG(HLE, "sceAudioSRCChRelease()");
|
DEBUG_LOG(HLE, "sceAudioSRCChRelease()");
|
||||||
|
chans[src].clear();
|
||||||
chans[src].reserved = false;
|
chans[src].reserved = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue