mirror of
https://github.com/red-prig/fpPS4.git
synced 2024-11-23 06:19:57 +00:00
sceAudioOutGetSystemState function (#169)
* sceAudioOutGetSystemState function broken AvPlayer doesn't let game boot further * Fix --------- Co-authored-by: red-prig <vdpasha@mail.ru>
This commit is contained in:
parent
ebc62880e3
commit
81f56072d7
@ -421,6 +421,23 @@ begin
|
|||||||
Result:=0;
|
Result:=0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
type
|
||||||
|
pSceAudioOutSystemState=^SceAudioOutSystemState;
|
||||||
|
SceAudioOutSystemState=packed record
|
||||||
|
loudness :single;
|
||||||
|
reserved8 :array[0..3] of Byte;
|
||||||
|
reserved64:array[0..2] of QWORD;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function ps4_sceAudioOutGetSystemState(state:pSceAudioOutSystemState):Integer; SysV_ABI_CDecl;
|
||||||
|
begin
|
||||||
|
if (state=nil) then Exit(SCE_AUDIO_OUT_ERROR_INVALID_POINTER);
|
||||||
|
if (HAudioOuts=nil) then Exit(SCE_AUDIO_OUT_ERROR_NOT_INIT);
|
||||||
|
|
||||||
|
state^.loudness:=1;
|
||||||
|
Result:=0;
|
||||||
|
end;
|
||||||
|
|
||||||
function ps4_sceAudioOutSetVolume(handle,flag:Integer;vol:PInteger):Integer; SysV_ABI_CDecl;
|
function ps4_sceAudioOutSetVolume(handle,flag:Integer;vol:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
Var
|
Var
|
||||||
H:TAudioOutHandle;
|
H:TAudioOutHandle;
|
||||||
@ -848,6 +865,7 @@ begin
|
|||||||
lib^.set_proc($40E42D6DE0EAB13E,@ps4_sceAudioOutOutput);
|
lib^.set_proc($40E42D6DE0EAB13E,@ps4_sceAudioOutOutput);
|
||||||
lib^.set_proc($C373DD6924D2C061,@ps4_sceAudioOutOutputs);
|
lib^.set_proc($C373DD6924D2C061,@ps4_sceAudioOutOutputs);
|
||||||
lib^.set_proc($3ED96DB37DBAA5DB,@ps4_sceAudioOutGetLastOutputTime);
|
lib^.set_proc($3ED96DB37DBAA5DB,@ps4_sceAudioOutGetLastOutputTime);
|
||||||
|
lib^.set_proc($47985E9A828A203F,@ps4_sceAudioOutGetSystemState);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
Loading…
Reference in New Issue
Block a user