This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Multiple users / playback?

Tags: None
(comma "," separated)
Toby Newman
Karma
0

Multiple users / playback?

Wed Jan 11, 2006 10:33 am
Is it possible for two users logged into two accounts in KDE (i.e. visible on Ctrl-Alt-F7 and Ctrl-Alt-F8) to both play music in Amarok at the same time?

I understand that this would make a racket (!), but at the moment the behaviour on my box is very odd:

If user 1 presses [play] in Amarok, then music starts playing.
If user 2 then presses [play] in Amarok, the button is depressed, but no audio is heard.
If user 1 then presses [stop] in Amarok, user 2\'s music is heard! It is as though User 2 has to wait their turn to access the soundcard.

Both users are using th artsdsink gstreamer output. If I understand correctly, this is the arts daemon, a software mixer which allows multiple sounds to be mixed together in software and then played to the soundcard simultaneously.

Why, then, are the outputs of the two simultaneous Amarok instances not mixed together and heard simultaneously?

Does everyone else get this same behaviour, or are two users able to play Amarok simultaneously on your setup? I\'d love to hear other people\'s experiences on this.
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re:Multiple users / playback?

Wed Jan 11, 2006 2:03 pm
It is as follows:
First user starts up KDE, arts blocks the audio device
Second user starts up KDE, arts is not able to connect to the audio device and will not play any audio (that\'s why you see the play button faded out).

If arts is using alsa (and not the oss emulation), it might be possible to start to arts demons at the same time. (but who wants to listen to music from two users at the same time???)

Anyway, it sounds like the users are remotely logging in, thus you probably want to run amarok locally and not remotely on the server, this should solve all problems
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re:Multiple users / playback?

Wed Jan 11, 2006 2:17 pm
Just remove artsd. Instead, use the alsasink for GStreamer. ALSA mixes audio automatically.


--
Mark Kretschmann - Amarok Developer
schdefan
Karma
0

Re:Multiple users / playback?

Thu Jan 12, 2006 3:42 pm
Hello!
I recently discovered amarok player. I am looking for a solution to play different music in various rooms but with one player. I installed 3 soundcards.
I tried to start amarok more than once but it is not possible. Also so to define various soundcards.

Can anyone give some hints?
Thanks in advance

schdefan
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re:Multiple users / playback?

Thu Jan 12, 2006 4:58 pm
Run a user for each instance of amarok you want to have (i.e. for each room). Use the xine options to bind amarok to a specific soundcard (alsa can do the trick, you probably want to search for this, I cannot remember the details.).
schdefan
Karma
0

Re:Multiple users / playback?

Tue Jan 17, 2006 8:55 am
marcel: Thanks for your hint. Runn a user for each instance. With the gstreamer engine and output plugin alsasink and device
hw:0,0 for the first soundcard
hw:1,0 for the second soundcard I can play different music.

schdefan
Toby Newman
Karma
0

Re:Multiple users / playback?

Tue Jan 17, 2006 8:03 pm
markey wrote:
Just remove artsd. Instead, use the alsasink for GStreamer. ALSA mixes audio automatically.


I\'m not sure what you mean by "remove artsd".
I tried setting Amarok\'s output to GStreamer\'s alsasink for both instances of Amarok (one on Ctrl-Alt-F7, one on Ctrl-Alt-F8) and if I try to play one whilst the other is playing Amarok gives me an error:

[GStreamer Error] ** gstalsa.c(1638): gst_alsa_open_audio: /thread/audiobin/alsasink2: system error

(FWIW, my KDE sound system is configured to output through ALSA. I\'m not sure if Amarok/GStreamer/alsasink will bypass this or not.)


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell