mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
Use larger fragsize for OSS.
This commit is contained in:
parent
b8382416ee
commit
6f04c38fda
@ -58,8 +58,8 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int frags = (latency * rate * 4)/(1000 * (1 << 9));
|
||||
int frag = (frags << 16) | 9;
|
||||
int frags = (latency * rate * 4)/(1000 * (1 << 10));
|
||||
int frag = (frags << 16) | 10;
|
||||
|
||||
if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user