Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
end OSS/aRts sound conflicts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Cid Highwind
n00b
n00b


Joined: 09 Jul 2002
Posts: 53

PostPosted: Sat Sep 14, 2002 8:54 pm    Post subject: end OSS/aRts sound conflicts Reply with quote

If you have a sound card that can play multiple PCM streams at the same time, you can use aRts and programs that write directly to /dev/dsp simultaneously. Go to the sound i/o tab in the sound server KDE control module, check the "use custom sound device" box, and fill in "/dev/dsp1". Restart the sound server. Presto, you have KDE sounds and OSS programs can still access /dev/dsp.

This trick isn't limited to expensive high-end cards. It works even on my old SoundBlaster PCI (based on the ES1371 chip).
Back to top
View user's profile Send private message
danzvash
n00b
n00b


Joined: 01 May 2002
Posts: 62
Location: London, UK

PostPosted: Thu Sep 19, 2002 10:23 am    Post subject: hmmm.... Reply with quote

I tried this with my setup. So arts is apparently using /dev/dsp1 (I didn't receive any error message when I restarted the sound server). But using arts programs produces NO SOUND, and when I look at the devices themselves...

www root # ll /dev/dsp*
lr-xr-xr-x 1 root root 9 Sep 18 01:44 /dev/dsp -> sound/dsp
crw-rw---- 1 root audio 14, 3 Sep 18 01:44 /dev/dsp-
crw-rw---- 1 root audio 14, 19 Sep 18 01:44 /dev/dsp1-

there is no /dev/dsp1, but rather a /dev/dsp1- as seen above.

Do I need to configure devfs or create /dev/dsp1 by hand? How should I do this?

If yes, can I then expect to be able to play sound through arts-enabled programs at the same time as using an alsa-only prog to play through /dev/dsp?
Back to top
View user's profile Send private message
Squinky86
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 309
Location: Alabama, USA

PostPosted: Wed May 14, 2003 9:45 pm    Post subject: Reply with quote

I would like to know how to set up /dev/dsp1 also. This is a great idea, but a more verbose howto would be greatly appreciated.
_________________
Me
Back to top
View user's profile Send private message
TcB
n00b
n00b


Joined: 15 Jun 2002
Posts: 52

PostPosted: Fri May 16, 2003 7:39 pm    Post subject: Reply with quote

Fantastic, it works for me, I have also a not expesive sounblaster:

$ lspci
(...)
02:0b.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
(...)

$ ls /dev/dsp* -l
lrwxrwxrwx 1 root root 9 2003-04-15 01:15 /dev/dsp -> /dev/dsp0
crw-rw---- 1 root audio 14, 3 2003-04-15 01:15 /dev/dsp0
crw-rw---- 1 root audio 14, 19 2003-04-15 01:15 /dev/dsp1
crw-rw---- 1 root audio 14, 35 2003-04-15 01:15 /dev/dsp2
crw-rw---- 1 root audio 14, 51 2003-04-15 01:15 /dev/dsp3

I was really tired to always have to kill artsd for playing wine or doing some other things.

Thanks.
Back to top
View user's profile Send private message
IonK
n00b
n00b


Joined: 14 May 2003
Posts: 3
Location: Berlin

PostPosted: Sat May 17, 2003 4:02 am    Post subject: Reply with quote

There is another way, too!
If u have a app that can't stream to arts them start the program like the following way -> artsdsp programm
Example:
U dont use the arts plugin for xmms, xmms hangs up if arts run.
To fix it start xmms -> artsdsp xmms
Select oss as output plugin and *taataa* it works :)

artsdsp is wrapper that suck up the soundata from the given app and stream it out to the arts daemon.

Have Fun!
Greetz Ion

P.S.: Sorry for the bad english, but i hope u has understand me ;)
_________________
--------------------------------------------------------------------------------
Have Problem with Windows !? > reboot
Have Problem with Linux !? > be root
Back to top
View user's profile Send private message
Squinky86
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 309
Location: Alabama, USA

PostPosted: Sat May 17, 2003 3:37 pm    Post subject: Reply with quote

However, artsdsp doesn't work for some programs. I know my soundcard supports multiple channels, but I only have /dev/dsp and no /dev/dsp1. I can't figure out how to create /dev/dsp1! That is a good tip though.
_________________
Me
Back to top
View user's profile Send private message
Javier Lopez
Guru
Guru


Joined: 13 Sep 2002
Posts: 377
Location: Barcelona

PostPosted: Thu Nov 20, 2003 8:49 pm    Post subject: Reply with quote

I have a SB 128 PCI card, this tip works for me using OSS drivers, but what about ALSA? Is it posible to do the same?
With ALSA drivers I have /dev/dsp and /dev/adsp and
Kde's sound server works great, but if I try "use custom sound device /dev/adsp", server says "can't open /dev/adsp" same happens with "/dev/dsp".
Back to top
View user's profile Send private message
FormerSlacker
Guru
Guru


Joined: 11 Mar 2003
Posts: 340
Location: Toronto, ON. Canada

PostPosted: Mon Nov 24, 2003 11:51 am    Post subject: Reply with quote

Javier Lopez wrote:
I have a SB 128 PCI card, this tip works for me using OSS drivers, but what about ALSA? Is it posible to do the same?
With ALSA drivers I have /dev/dsp and /dev/adsp and
Kde's sound server works great, but if I try "use custom sound device /dev/adsp", server says "can't open /dev/adsp" same happens with "/dev/dsp".


I know that with my card, SB PCI 128 (ES1371), /dev/dsp1 is available with the stock oss drivers, but with alsa it doesn't seem to work. YMMV :?
Back to top
View user's profile Send private message
Javier Lopez
Guru
Guru


Joined: 13 Sep 2002
Posts: 377
Location: Barcelona

PostPosted: Mon Nov 24, 2003 10:59 pm    Post subject: Reply with quote

FormerSlacker wrote:

I know that with my card, SB PCI 128 (ES1371), /dev/dsp1 is available with the stock oss drivers, but with alsa it doesn't seem to work. YMMV :?


I have a ES1370 card, with OSS I have /dev/dsp and /dev/dsp1 like you. With ALSA I have /dev/dsp and /dev/adsp, but I don't know how to tell arts to use /dev/adsp and let /dev/dsp free
Back to top
View user's profile Send private message
Javier Lopez
Guru
Guru


Joined: 13 Sep 2002
Posts: 377
Location: Barcelona

PostPosted: Tue Dec 09, 2003 10:35 pm    Post subject: Reply with quote

Javier Lopez wrote:
I have a SB 128 PCI card, this tip works for me using OSS drivers, but what about ALSA? Is it posible to do the same?
With ALSA drivers I have /dev/dsp and /dev/adsp and
Kde's sound server works great, but if I try "use custom sound device /dev/adsp", server says "can't open /dev/adsp" same happens with "/dev/dsp".


Yes it's posible with ALSA too!! using OSS emulation.

Go to the sound i/o tab in the sound server KDE control module, then select in Sound I/O method "Open Sound System", check the "use custom sound device" box, and fill in "/dev/sound/adsp". Restart the sound server.

All arts output now goes to PCM2, so you can use ALSA in PCM1. For example I can use noatun (using arts) and XMMS with ALSA output plugin at same time.
Back to top
View user's profile Send private message
Crazor
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2003
Posts: 131

PostPosted: Sun Feb 15, 2004 8:30 pm    Post subject: Reply with quote

When I setup KDE to use /dev/sound/adsp, everything gets played with half the speed as it should. This is really annoying.. =)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum