mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-27 05:17:03 -06:00
cellAudio: fix enqueued samples computation
This commit is contained in:
parent
bba528e2ae
commit
9766d87126
@ -305,7 +305,7 @@ u64 audio_ringbuffer::update()
|
||||
// Calculate how many audio samples have played since last time
|
||||
if (cfg.buffering_enabled && (playing || new_playing))
|
||||
{
|
||||
enqueued_samples = cb_ringbuf.get_used_size() / cfg.audio_sample_size;
|
||||
enqueued_samples = cb_ringbuf.get_used_size() / (cfg.audio_sample_size * cfg.audio_channels);
|
||||
}
|
||||
|
||||
// Update playing state
|
||||
|
||||
Loading…
Reference in New Issue
Block a user