Date: Sun, 28 Jan 2001 22:03:48 -0600 From: Dan Nelson <dnelson@emsphone.com> To: Rob <europax@home.com> Cc: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: compiling under compat/linux- Secrets? Message-ID: <20010128220347.A12999@dan.emsphone.com> In-Reply-To: <3A74DEFE.53C4C2CB@home.com>; from "Rob" on Sun Jan 28 19:09:50 GMT 2001 References: <3A74B2E2.E7151E0A@home.com> <20010128205027.A13338@dan.emsphone.com> <3A74DEFE.53C4C2CB@home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 28), Rob said: > Dan Nelson wrote: > > In the last episode (Jan 28), Rob said: > > > I am trying to compile the "vsound" linux program, used for intercepting > > > calls to /dev/dsp and storing the audio stream to a file. > > > > You shouldn't have to compile in Linux compat mode to get that to > > work; our /dev/dsp is completely compatible with Linux's. The only > > time you really need to build a Linux binary should be if you have > > to link to a library that you don't have the source to, or if > > you're cross-compiling for a Linux target. > > I compiled a FreeBSD "vsound" but linux-realplayer complained that the > libvsound.so was incompatible, so thats why I thought I needed a linux > version of the library. > > This vsound program is very clever. The vsound wrapper preloads the > vsound library which then substitutes its own open() close() write() etc > before calling realplayer. So realplayer thinks its talking to > /dev/dsp, when its actually not. Vsound then saves the sound file. Aha. In that case, you do need to build a Linux binary. The linux_base and linux_devtools packages should give you all you need. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010128220347.A12999>