cellAudio: fix timestamp exception

This commit is contained in:
Megamouse 2022-05-08 01:44:29 +02:00
parent 0a5ea859ea
commit d83fac4247
1 changed files with 3 additions and 3 deletions

View File

@ -597,6 +597,9 @@ void cell_audio_thread::reset_counters()
cell_audio_thread::cell_audio_thread()
{
// Initialize loop variables (regardless of provider in order to initialize timestamps)
reset_counters();
if (cfg.raw.provider != audio_provider::cell_audio)
{
return;
@ -607,9 +610,6 @@ cell_audio_thread::cell_audio_thread()
// Allocate ringbuffer
ringbuffer.reset(new audio_ringbuffer(cfg));
// Initialize loop variables
reset_counters();
}
void cell_audio_thread::operator()()