From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 2 09:38:12 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9F951065690; Thu, 2 Oct 2008 09:38:12 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1788FC1C; Thu, 2 Oct 2008 09:38:11 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m929c7nd029258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Oct 2008 13:38:08 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KlKdK-000960-SV; Thu, 02 Oct 2008 13:38:06 +0400 From: Vladimir Grebenschikov To: Alexander Leidinger In-Reply-To: <20081002111212.15904gttx6dapncw@webmail.leidinger.net> References: <1222855688.21166.33.camel@localhost> <20081001131607.13835rpplem7lr40@webmail.leidinger.net> <48E48927.8000309@ladisch.de> <20081002111212.15904gttx6dapncw@webmail.leidinger.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Thu, 02 Oct 2008 13:38:06 +0400 Message-Id: <1222940286.1798.30.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: emulation@freebsd.org, Clemens Ladisch , multimedia@freebsd.org Subject: Re: ALSA support for linuxator - any ideas / progress ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2008 09:38:13 -0000 On Thu, 2008-10-02 at 11:12 +0200, Alexander Leidinger wrote: > Quoting "Clemens Ladisch" (from Thu, 02 Oct 2008 > 10:41:11 +0200): > > > Alexander Leidinger wrote: > >> Quoting "Vladimir Grebenschikov" (from Wed, 01 Oct 2008 > >> 14:08:08 +0400): > >> > Probably anyone have ideas how to make linux ALSA applications to > >> > work under FreeBSD ? > >> > some obvious ideas here: > >> > - provide fake, OSS-backended libalsa (probably there is such beast > >> > on Linux ?) > >> > >> AFAIK there's no such thing on Linux. > > > > The alsa-plugins package contains an OSS backend for libasound. See > > . > > Sounds very interesting. Any RPMs for this (Fedora 4 or Fedora 8 > based)? It may also be interesting to make a native port for this (to > get some ALSA-only apps portable to FreeBSD)... Thanks Clemens, I was able to make aplay to play sound on FreeBSD installation. need to install alsa-lib-1.0.15-1.fc8.i386.rpm (minor library upgrade to match oss-plugin) alsa-plugins-oss-1.0.15-3.fc8.1.i386.rpm alsa-utils-1.0.15-1.fc8.i386.rpm (for aplay) and then provide default pcm configuration # cat /compat/linux/etc/asound.conf pcm.!default "oss" pcm.oss { type oss device /dev/dsp } # After that some simple wav's can be played: $ /compat/linux/usr/bin/aplay /usr/local/share/apps/sim/sounds/message.wav Playing WAVE '/usr/local/share/apps/sim/sounds/message.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono $ Unfortunately flash9 plug-in is still silent, but it not shows more any error messages. Probably it is due to: --- README-pcm-oss --- ... The function supported by this plugin is limited. For example, you cannot use dmix together with this plugin. Don't expect too much :) ... Probably it worth to try play sound with flash9 player through this plug-in on plain Linux. > Bye, > Alexander. -- Vladimir B. Grebenschikov vova@fbsd.ru