aoss doesn't work at all in ubuntu dapper?

Gerhard Gaußling ggrubbish at web.de
Sun Jul 30 16:50:10 UTC 2006


Hello,

I'm wondering if aoss working at all in dapper?

gerhard at ubuntu:~/download/Radio/Last.FM/Last.fm_Client_1.0.0b$ 
aoss ./bin_LastFM
ERROR: ld.so: object '/usr/lib/libaoss.so' from LD_PRELOAD cannot be 
preloaded: ignored.

What does that mean? I thought, that aoss invokes the application to use 
the oss device, but if I press play in lastfm beta, it segfaults, 
because it doesn't use oss emulation (snd-pcm-oss), and it got a bug 
with using alsa:

 Initialising RtAudio failed. RtAudio error type: 7 Message: RtApi: 
unable to open specified device(s) with given stream parameters:
RtApiAlsa: error setting sample rate (44100) on device (hw:CK804,2): 
Invalid argument.

The snd-pcm-oss is known to handle this, but the application started by 
aoss unfortunately doesn't use snd-pcm-oss :-(

In i386 chroot this message doesn't appears:
~$ aoss ./bin_LastFM
ERROR: ld.so: object '/usr/lib/libaoss.so' from LD_PRELOAD cannot be 
preloaded: ignored.

But nevertheless it crashes, because it doesnt uses oss...



But sox seems to use it, but vsound fails, because it doesn't work with 
alsa (confusing):
~$ aoss vsound play ~/test.mp3
About to start the application. The output will not be available
until the application exits.

Input Filename : /home/gerhard/test.mp3
Sample Size    : 16-bits
Sample Encoding: MPEG audio (layer I, II or III)
Channels       : 2
Sample Rate    : 44100

Time: 03:36.92 [00:00.00] of 00:00.00 (  0.0%) Output Buffer:   9.57M

Done.
Missing file ./vsound10207.au.
This means that the libvsound wrapper did not work correctlty.
Here are some the possible reasons :
 - You are trying to record a stream (RTSP or PNM protocol) from
   the internet. You will need to use the --timing option.
 - The program you are trying to run is setuid. You will need to
   run vsound as root.
 - Vsound was not properly installed and hence won't work at all.

But It used the /dev/dsp (very confusing):
~$ fuser -v /dev/dsp

                     USER        PID ACCESS COMMAND
/dev/dsp:            gerhard   10211 F.... sox

vsound works if  the player is started with the explicit option -o oss :
~$ aoss  vsound -a 2 -d -t  alsaplayer -o oss  ~/test.mp3
About to start the application. The output will not be available
until the application exits.
$ ls -l ~/vsound.wav
-rw-r--r-- 1 gerhard gerhard 4382764 Jul 30 
18:08 /home/gerhard/vsound.wav
$ fuser -v /dev/dsp

                     USER        PID ACCESS COMMAND
/dev/dsp:            gerhard   17130 F.... alsaplayer


And I got also another LD_PRELOAD issue:
gerhard at ubuntu:~$ vsound trplayer ~/test.mp3
About to start the application. The output will not be available
until the application exits.
ERROR: ld.so: object '/usr/lib/vsound/libvsound.so' from LD_PRELOAD 
cannot be preloaded: ignored.
Missing file ./vsound18855.au.
[...]

I read about problems with atrplayer (aoss wrapped trplayer for using 
trplayer with vsound) with alsa <= 1.0.11. In ubuntu dapper we have 
1.0.10. Is this the problem?

Can someone help out to understand aoss and LD_PRELOAD issues, please?

Kind regards

Gerhard Gaußling




More information about the ubuntu-users mailing list