mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 09:03:22 -05:00
Replace the stub AvPlayer export set with a general-purpose player state machine covering the full API surface: sceAvPlayerInit/InitEx/PostInit, AddSource/AddSourceEx, Start/StartEx, Pause/Resume/Stop/Close, IsActive, CurrentTime, JumpToTime, SetLooping, SetAvSyncMode, SetTrickSpeed, SetAvailableBandwidth, StreamCount/EnableStream/DisableStream/ChangeStream/ GetStreamInfo(Ex), and GetVideoData(Ex)/GetAudioData. No real decoder is wired up: the player tracks lifecycle and timing state and serves a fixed-length blank clip on a wall-clock media clock, firing the READY/PLAY/PAUSE/STOP event callbacks a title expects from a real playback session. This is enough for titles that gate progression on AvPlayer's polling/event surface rather than on decoded frame content. The non-native libSceAvPlayer/Export.cpp now forwards to the native implementation via #include rather than carrying its own duplicate stub definitions, consistent with how other libSceX/libSceX.native pairs in this tree share one implementation.
2 lines
48 B
C++
2 lines
48 B
C++
#include "prx/libSceAvPlayer.native/Export.cpp"
|