Date: Wed, 9 Apr 2025 14:47:55 +0200 From: =?UTF-8?Q?Goran_Meki=C4=87?= <meka@tilda.center> To: freebsd-multimedia@freebsd.org Subject: Memory mapped OSS device Message-ID: <f2e2bef2-2a45-4e70-894f-ad287f29ac37@tilda.center>
index | next in thread | raw e-mail
Hello, I am trying to learn about mmap mode of OSS and so far I have this: https://github.com/mekanix/freebsd-src/blob/audio-mmap/share/examples/sound/oss/audio.c. So the device is initialized properly and my code doesn't break trying to write something past the length of the buffer, but I do get strange sound. I am using http://manuals.opensound.com/developer/mmap_test.c.html as reference and the difference that I implemented is that I'm trying to "guess" how long I have to sleep so that when I wake up (and maybe wait a little bit more), I can write the whole buffer. If anybody knows what I'm doing wrong here, please help me. Regards, mekahelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2e2bef2-2a45-4e70-894f-ad287f29ac37>
