From kde-devel Tue Apr 30 12:12:19 2002 From: Thiago Macieira Date: Tue, 30 Apr 2002 12:12:19 +0000 To: kde-devel Subject: Re: KDE's aRTs and VMWare X-MARC-Message: https://marc.info/?l=kde-devel&m=102016891225984 Hetz Ben Hamo wrote >Hi People, > >I'm trying to play a bit with aRTs and with VMWare (to see if I can capture >the sound out of vmware, or maybe to tweak it a bit)... > >I've tried to run: artsdsp vmware > >This is running, but according to arts-control - the aRTs doesn't get > anything out of it. I have also tried artdsp xmms for testing (with the o= ss > driver) - this time it seems aRTs is indeed routing the sound and plays it > (with a small problem - when I stop XMMS, aRTs keeps playing for 1 more > second).. > >My question: how can I force VMWare to output the sound through arts? is > there a way to record what arts is getting? The problem with running artsdsp vmware is that artsdsp works by using=20 LD_PRELOAD. Since vmware is a setuid application, the loader simply ignores= =20 the LD_PRELOAD variable. I have two solutions for that: 1) Create a /etc/ld.so.preload file and place the required aRTs libraries=20 there: /usr/lib/libartsdsp.so /usr/lib/libartsc.so Please note that that file should be available only when vmware is run.=20 Otherwise, all programs shall get the libraries loaded -- which would be li= ke=20 running all of them with artsdsp.=20 Then again, that might not be such a bad idea... 2) This is Linux-specific and works for me because I use ALSA. I used the snd-card-dummy module and so it loaded for me /dev/snd/pcmC1D0p = and=20 /dev/dsp1. I just told VMWare to use /dev/dsp1 instead of /dev/dsp for its= =20 sound output. Then I run this in a konsole terminal: artscat /proc/asound/1/pcmloopD0S0p -b16 -c2 -r44100 And then note that the sound works right only when the guest OS is playing = at=20 44.1 kHz, 16-bit and stereo. But the nifty thing is that you can also do an= =20 oggenc -r /proc/asound/1/pcmloop/D0S0p -o myrecording.ogg Why am I using the second alternative, which is more difficult? Because I=20 using the aRTs libraries to play sound makes things go slower. In VMWare, y= ou=20 hear only pieces of the sound, with silent interruptions. And while playing= =20 movies in xine and mplayer, I notice that less image frames are output (ful= l=20 screen, VMWare is running). It seems that the libraries take up too many=20 cycles... =2D-=20 Thiago Macieira - UFOT Registry number: 1001 thiagom@mail.com ICQ UIN: 1967141 PGP: will create new keys. Erase the old ones! Registered Linux user #65028 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<