mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Rather than repeating the same sample for every frame while stalled,
just pause the sound while stalled. Both options are annoying, but this option is less annoying.
This commit is contained in:
parent
ea0bb6f812
commit
12bf3e4824
@ -464,14 +464,14 @@ void video_frame_net(const void *data, unsigned width,
|
||||
void audio_sample_net(int16_t left, int16_t right)
|
||||
{
|
||||
netplay_t *netplay = (netplay_t*)netplay_data;
|
||||
if (!netplay_should_skip(netplay))
|
||||
if (!netplay_should_skip(netplay) && !netplay->stall)
|
||||
netplay->cbs.sample_cb(left, right);
|
||||
}
|
||||
|
||||
size_t audio_sample_batch_net(const int16_t *data, size_t frames)
|
||||
{
|
||||
netplay_t *netplay = (netplay_t*)netplay_data;
|
||||
if (!netplay_should_skip(netplay))
|
||||
if (!netplay_should_skip(netplay) && !netplay->stall)
|
||||
return netplay->cbs.sample_batch_cb(data, frames);
|
||||
return frames;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user