Re: FreeBSD pcm(4) latency (From write() to audible output)

看板FB_chat作者時間21年前 (2004/08/13 23:45), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
> Freebsd-multimedia would be the right place. I think what you > want is a smaller block size. The SNDCTL_DSP_SETBLKSIZE should be the > right IOCTL to use, check out the oss programmers manual, I don't have > a link right now but google should find it pretty quick. Just to wrap this up here too: My problem was primarly due to the fragment sizes of buffers. I don't know what sizes are set as default but they're to big for my applications. I've found with the following it killed the delay to next to nothing (about 5ms by my working out). val = (2 << 16) | 9; ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, &val); Thanks Mathew, Pete. -- Peter Wood BSc (Hons) :: <peter@alastria.net> :: Tel +44 7974 799440 _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #117E8N00 (FB_chat)
文章代碼(AID): #117E8N00 (FB_chat)