mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
Portability fix
This commit is contained in:
parent
a6a29bdb63
commit
7a6884e4fb
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ qboolean SNDDMA_Init(void)
|
|||
shm->speed = atoi(com_argv[i+1]);
|
||||
else
|
||||
{
|
||||
for (i=0 ; i<sizeof(tryrates)/4 ; i++)
|
||||
for (i=0; i<sizeof(tryrates)/sizeof(tryrates[0]); i++)
|
||||
if (!ioctl(audio_fd, SNDCTL_DSP_SPEED, &tryrates[i])) break;
|
||||
shm->speed = tryrates[i];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue