10-12-2012, 12:03 AM
I do not get this log from hle.sceAudio debug ?
(10-11-2012, 08:08 AM)gid15 Wrote:It looks like the "user_main" thread is waiting for the audio channel to drain, but another thread is continuously sending audio.Code:42664 user_main DEBUG hle.sceAudio hleAudioGetChannelRestLen(8) = 3584
42666 user_main DEBUG hle.sceAudio sceAudioOutput2GetRestSample
42666 user_main DEBUG hle.sceAudio free buffer 1483943368
42667 user_main DEBUG hle.sceAudio hleAudioGetChannelRestLen(8) = 2048
42669 user_main DEBUG hle.sceAudio sceAudioOutput2GetRestSample
42669 user_main DEBUG hle.sceAudio hleAudioGetChannelRestLen(8) = 2048
42671 user_main DEBUG hle.sceAudio sceAudioOutput2GetRestSample
42671 user_main DEBUG hle.sceAudio hleAudioGetChannelRestLen(8) = 2048
This would explain why pausing Jpcsp for a short time does help: the audio continues to play while pausing and the audio channel gets empty, which then allows the "user_main" thread to go further.
I have to check if I can improve the compatibility of the sound buffering in Jpcsp... the difference is that if the sound buffer gets empty on OpenAL, it is producing a small "click" that can be heard when the sound output resumes, while it is not on a real PSP...