Set SDL audio buffer to maximum of 3 frames.

This commit is contained in:
Edênis Freindorfer Azevedo 2020-07-03 17:11:50 -03:00
parent 18c2ea61c6
commit 2f5219ee8f
No known key found for this signature in database
GPG Key ID: 968FB6EC280C7222
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,9 @@
extern int emulating; extern int emulating;
// Hold up to 300 ms of data in the ring buffer // Hold up to 50 ms of data in the ring buffer
const double SoundSDL::buftime = 0.300; // 3 frames
const double SoundSDL::buftime = 0.050;
SoundSDL::SoundSDL(): SoundSDL::SoundSDL():
samples_buf(0), samples_buf(0),