Date: Mon, 17 May 2021 01:56:36 +0300 From: Evgeniy Khramtsov via freebsd-multimedia <freebsd-multimedia@freebsd.org> To: John-Mark Gurney <jmg@funkthat.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: Silent noise while running simple OSS program and moving mouse? Message-ID: <YKGjJKppX2/C9bOm@vax.khramtsov.org> In-Reply-To: <20210516223649.GD14975@funkthat.com> References: <YKGWO6L9NTikr1ZI@vax.khramtsov.org> <20210516223649.GD14975@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Is it gaps in the sound? According to OSS documentation at opensound.com, read and write are blocking until there should be enough data for a buffer. If I don't touch mouse, e.g. typing only or doing some CPU stress stuff, there is no noise. But once I move mouse around, there is some silent noise. > Maybe post a recording of it. Writing to a fd doesn't produce a formatted .wav file, unfortunately. I'll report later once I figure out this and how to output as .wav. On Sun, May 16, 2021 at 03:36:49PM -0700, John-Mark Gurney wrote: > Evgeniy Khramtsov via freebsd-multimedia wrote this message on Mon, May 17, 2021 at 01:01 +0300: > > I wrote this simple OSS program that outputs sound from microphone back > > to the speakers (the close() and stuff is omitted): > > https://pastebin.com/raw/yX4gm5fL > > > > It works, though for some reason I get some silent noise while moving > > mouse around. Any ideas what could be wrong? Thanks. > > Can you define silent noise better? Maybe post a recording of it. > > Is it gaps in the sound? where there's a gap in either playback > or recording and it's absolutely silent, or do you mean that there's > an additional sound that only appears when you move the mouse? > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YKGjJKppX2/C9bOm>