mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 03:35:22 +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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int frags = (latency * rate * 4)/(1000 * (1 << 9));
|
int frags = (latency * rate * 4)/(1000 * (1 << 10));
|
||||||
int frag = (frags << 16) | 9;
|
int frag = (frags << 16) | 10;
|
||||||
|
|
||||||
if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
|
if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user