mirror of https://github.com/RPCS3/rpcs3.git
cellAudio: fix timestamp exception
This commit is contained in:
parent
0a5ea859ea
commit
d83fac4247
|
@ -597,6 +597,9 @@ void cell_audio_thread::reset_counters()
|
||||||
|
|
||||||
cell_audio_thread::cell_audio_thread()
|
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)
|
if (cfg.raw.provider != audio_provider::cell_audio)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -607,9 +610,6 @@ cell_audio_thread::cell_audio_thread()
|
||||||
|
|
||||||
// Allocate ringbuffer
|
// Allocate ringbuffer
|
||||||
ringbuffer.reset(new audio_ringbuffer(cfg));
|
ringbuffer.reset(new audio_ringbuffer(cfg));
|
||||||
|
|
||||||
// Initialize loop variables
|
|
||||||
reset_counters();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cell_audio_thread::operator()()
|
void cell_audio_thread::operator()()
|
||||||
|
|
Loading…
Reference in New Issue