Date: Thu, 10 Mar 2011 05:52:35 +0100 From: Michal Varga <varga.michal@gmail.com> To: Gary Dunn <knowtree@aloha.com> Cc: FreeBSD Gnome <freebsd-gnome@freebsd.org> Subject: Re: OSS Message-ID: <1299732755.1472.78.camel@xenon> In-Reply-To: <1299729535019-004-01259234.knowtree.aloha.com@usi-mail08-mtka.usinternet.com> References: <7715e5db-ef4b-4bb6-a14d-ec2276e15b41@email.android.com> <1299698516.1472.11.camel@xenon> <1299729535019-004-01259234.knowtree.aloha.com@usi-mail08-mtka.usinternet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2011-03-09 at 17:58 -0800, Gary Dunn wrote: > Sounds like FreeBSD has OSS by default. Thanks for the help. > > Squeak is far more than a programming language. It is a complete GUI. > Among its many classes is support for sound. On Unix this requires OSS > or NAS. > > I am preparing to build my own Squeak virtual machine in order to add > support for DBus, to intercept session ending to perform an orderly > exit. This page mentions OSS in section one, note three: > > http://www.squeakvm.org/unix/download.html > > More about Squeak at http://www.squeak.org/ > I see, now I think it's clear whar you're trying to achieve. In that case, you have two basic options... First, as mentioned before, is to use Squeak's native OSS capabilities and let it talk to OSS directly. That may be either FreeBSD's default OSS, or, if in some exotic case FreeBSD's sound drivers don't work well with your hardware, you can try 4Front's OSS implementation (port audio/oss) which comes with its own set of kernel drivers. With either FreeBSD's virtual channels (man pcm) or 4Front's software mixer, multiple applications can talk to OSS simultaneously, including both OSS and PulseAudio applications (with PulseAudio itself running atop of OSS in the common scenario). Then the other possibility, as you first mentioned better Gnome integration, is to reroute Squeak's OSS output through PulseAudio, which will feed it back to OSS anyway, but only after doing any extra steps you'd like to have done on it (i.e. for software mixing and/or volume control done inside PulseAudio, redirecting the stream through other PulseAudio sinks, or simply for having a nice icon in Gnome showing that your application is playing sound). As obviously Squeak can't talk to PulseAudio natively, it can be still achieved through padsp wrapper provided from PulseAudio (man padsp), though for common situations, that's already an unnecessary overkill. m. -- Michal Varga, Stonehenge (Gmail account)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1299732755.1472.78.camel>