mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
Reduce audio buffer size, as indicated on scummvm-devel
svn-id: r32316
This commit is contained in:
parent
afd44c95d9
commit
77f2e18dcf
@ -403,10 +403,10 @@ bool OSystem_SDL::setSoundCallback(SoundProc proc, void *param) {
|
||||
_samplesPerSec = SAMPLES_PER_SEC;
|
||||
|
||||
// Determine the sample buffer size. We want it to store enough data for
|
||||
// about 1/10th of a second. Note that it must be a power of two.
|
||||
// about 1/64th of a second. Note that it must be a power of two.
|
||||
// So e.g. at 22050 Hz, we request a sample buffer size of 2048.
|
||||
int samples = 0x8000;
|
||||
while (10 * samples >= _samplesPerSec) {
|
||||
int samples = 8192;
|
||||
while (64 * samples >= _samplesPerSec) {
|
||||
samples >>= 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user