Esound + skype...

Alexander Leidinger Alexander at Leidinger.net
Tue Aug 15 14:24:43 UTC 2006


Quoting Norberto Meijome <freebsd at meijome.net> (Tue, 15 Aug 2006 23:20:26 +1000):

> $ esddsp skype
> ERROR: ld.so: object '/usr/local/lib/libesddsp.so' from LD_PRELOAD cannot be
> preloaded: ignored. 
> ERROR: ld.so: object '/usr/local/lib/libesd.so' from
> LD_PRELOAD cannot be preloaded: ignored.

This is because esddsp just load a lib to the program you specify.
Since you are calling the FreeBSD native esddsp, you try to add the
FreeBSD native lib to the linux skype. This doesn't work.

> I then tried audio/linux-esound, (and had to install audio/linux-alsa-lib too),
> but it seems /compat/linux/usr/bin/esd cannot find the sound device:
> 
> 
> $ /usr/compat/linux/usr/bin/esd
> ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver
> returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error
> evaluating strings ALSA lib conf.c:3493:(_snd_config_evaluate) function
> snd_func_concat returned error: No such device ALSA lib
> confmisc.c:1072:(snd_func_refer) error evaluating name ALSA lib
> conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No
> such device ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such
> device ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default

I seems the linux esd tries to use ALSA. Since we don't have ALSA
support...

> i tried mounting devfs in /compat/linux/dev/ and pointing esd to it
> ( -d /compat/linux/dev/dsp) but:
> $ /usr/compat/linux/usr/bin/esd -d /compat/linux/dev/dsp
> - using device /compat/linux/dev/dsp
> ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM /compat/linux/dev/dsp

This will not work, linux programs fall back to the FreeBSD path (if
there's no linux directory, so make sure /compat/linux/dev doesn't
exists and it will do so magic and access the native /dev).

> 
> so....
>  1) is it possible to run a sound server (i.e., basically something that allows
> several streams to play simultaneously without locking the dsp) so that both
> native AND emulated apps will be happy with?
>  2) am I missing something big ? 

What about
 sysctl hw.snd.maxautovchans=<num>
where <num> is the number of programs you want to allow to play at the
same time.

Bye,
Alexander.

-- 
   93: Emacs
          Warum werden die Funktionen nicht mit Passwörtern versehen?
          (Frank Klemm)
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-multimedia mailing list