[SDL] Re: dspaudio & FreeBSD - huge delay [testcase]
f91-men at nada.kth.se
Sat Apr 1 17:04:40 PST 2000
>Yes, it refuses to use provided parameters. I've just digged into
>kernel sources and found that actually buffer for each driver is
>specified by using #define, and size of it remains constant from
>reboot to reboot. I've also found confirmation of my assumptions -
>buffer for my specific driver was set to 64KB. I'm using
>OSS-compatable (well, partially in fact) FreeBSD's pcm driver.
Ah. Well, that sucks. Can you check if ioctl(SNDCTL_DSP_GETOSPACE) works?
If it does, we can use the same trick as on Solaris (which also has a
big non-adjustable buffer): sleep a while, then check if the buffer
is running low. If so, feed it. Repeat.
More information about the SDL