Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Getting sound only from one app while running multiple apps

  1. #1

    Default Getting sound only from one app while running multiple apps

    Hi,
    I've always had problem with sound on my laptop and opensuse 64 bit. Now, it has started to give sound only for one app running on my laptop. I mean if I run amarok first, than mplayer, I get sound only from amarok. Is there any idea about it? Thanks
    Here is my script info link:
    http://www.alsa-project.org/db/?f=ff...7cdc3f383d688d

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Getting sound only from one app while running multiple a

    Normal behaviour for Linux. Close one before starting the other.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: Getting sound only from one app while running multiple a

    Quote Originally Posted by caf4926 View Post
    Normal behaviour for Linux. Close one before starting the other.
    But I remember that one that (I don't remember which one time :) I was getting sound at the same time with multiple apps running on.

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Getting sound only from one app while running multiple a

    Maybe, but not really my speciality - See if 'oldcpu' drops by..
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,565
    Blog Entries
    38

    Default Re: Getting sound only from one app while running multiple a

    reis3k , if you are curious, you could brush up on some openSUSE Linux sound concepts so you can understand the limitations of sound in Linux. Sound-concepts - openSUSE

    Most Linux sound daemons/servers will NOT allow more than one application to share the sound. Hence if one sound device is using the sound, another is not allowed to use it.

    The exceptions to that are the alsa api and pulse audio (where they WILL share the audio). Pulse audio is relatively new, and it was implemented in part to specifically allow multiple applications to share the sound device. However pulse audio is buggy. Real buggy ... Did I say pulse was buggy?

    The alsa api "route" is what I often try to set up on my PC. Maybe someday I'll switch to tuning pulse ... but its not there yet, and neither am I. Pulse is still buggy. You will find many applications allow one to select the sound engine, and hence one can often select the output sound module (or sound engine) to be pulse, or alsa. I usually select alsa when it is a choice.

    For example, In the case of Amarok, one can select "xine" to be the sound engine. After selecting that, one can then separately launch "xine" (assuming one has installed 'xine-ui' (the xine user interface)) and in "xine" select alsa as the output sound module. By doing that, Amarok is using the alsa api and hence it will share the audio device with other applications that also use the alsa api.

    In the case of mplayer, if one is using the smplayer front end (which I recommend) one can do the same in terms of selecting the alsa api. Hence in that case, with both smplayer and amarok using the alsa api, they should share the audio device (and sound will come from both simultaneous).

    Its not easy to tune to the alsa api, and thats why pulse is being implemented to eventually make this easier such that all applications will be able to share sound. ... but , ... did I say pulse was buggy ?

  6. #6

    Default Re: Getting sound only from one app while running multiple a

    Quote Originally Posted by oldcpu View Post
    reis3k , if you are curious, you could brush up on some openSUSE Linux sound concepts so you can understand the limitations of sound in Linux. Sound-concepts - openSUSE

    Most Linux sound daemons/servers will NOT allow more than one application to share the sound. Hence if one sound device is using the sound, another is not allowed to use it.

    The exceptions to that are the alsa api and pulse audio (where they WILL share the audio). Pulse audio is relatively new, and it was implemented in part to specifically allow multiple applications to share the sound device. However pulse audio is buggy. Real buggy ... Did I say pulse was buggy?

    The alsa api "route" is what I often try to set up on my PC. Maybe someday I'll switch to tuning pulse ... but its not there yet, and neither am I. Pulse is still buggy. You will find many applications allow one to select the sound engine, and hence one can often select the output sound module (or sound engine) to be pulse, or alsa. I usually select alsa when it is a choice.

    For example, In the case of Amarok, one can select "xine" to be the sound engine. After selecting that, one can then separately launch "xine" (assuming one has installed 'xine-ui' (the xine user interface)) and in "xine" select alsa as the output sound module. By doing that, Amarok is using the alsa api and hence it will share the audio device with other applications that also use the alsa api.

    In the case of mplayer, if one is using the smplayer front end (which I recommend) one can do the same in terms of selecting the alsa api. Hence in that case, with both smplayer and amarok using the alsa api, they should share the audio device (and sound will come from both simultaneous).

    Its not easy to tune to the alsa api, and thats why pulse is being implemented to eventually make this easier such that all applications will be able to share sound. ... but , ... did I say pulse was buggy ?
    Hi,

    First of all, I installed xine-ui but it didn't add any different ui to amarok that it has before. I think it's a standalone multimedia player of xine.

    At the backend tab of amarok, there is a priority list having Xine as a first choice and gstreamer as second. But when I click on xine, it doesn't offer any advanced properties about sound except some deinterlace properties. However, at the first tab of amarok sound and video configuration, there is a device preference which I believe directly connected to suse's main device properties. I mean if I change it, all the application's audio output and capture properties will change. Yeah, at that list (again priority list) first choice is pulse and second HDA Intel. I made it HDA Intel for all device list.

    For the smplayer, it was already alsa - hda intel selected. In the list. there was also bare "alsa", but I don't think that it makes difference.

    From yast, audio properties, I disabled pulse audio option.

    Finally, I tried amarok and smplayer after the restarted but it was the same, except I started to get a notification when system restarts saying there was a error with audio device and it's turned to default.

  7. #7

    Default Re: Getting sound only from one app while running multiple a

    You mentioned pulse as a buggy too much, and I decided to remove all the instances. I searched for pulse and removed everything except libpulse0 and libpulse0-32bit, because they wanted me to change many things that I afraid to do.

    I restarted system and run amarok and smplayer again. It was the same, BUT AFTER I CHANGE THE AUDIO OUTPUT property from "alsa (0.0 - HDA Intel)" to "alsa", I GOT MULTIPLE SOUND. SO, at the moment, I can run more than one apps requiring audio at the same time (including the flash player on firefox).

    Thanks for the suggestions. I hope they will make a fix to my laptop's mute problem (I have to switch on mute button on my laptop, cos it disables it by itself after every restarts) after restarts.

  8. #8
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,565
    Blog Entries
    38

    Default Re: Getting sound only from one app while running multiple a

    Quote Originally Posted by reis3k View Post
    Finally, I tried amarok and smplayer after the restarted but it was the same, except I started to get a notification when system restarts saying there was a error with audio device and it's turned to default.
    I do not know what to say , other than you need to try harder.

    I can play sound with xine and amarok and smplayer at the same time.

    xine settings:


    amarok settings:


    smplayer


    I'm doing it right now.

    The settings you refer to in xine make no sense.

  9. #9
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,565
    Blog Entries
    38

    Default Re: Getting sound only from one app while running multiple a

    Quote Originally Posted by reis3k View Post
    You mentioned pulse as a buggy too much, and I decided to remove all the instances. I searched for pulse and removed everything except libpulse0 and libpulse0-32bit, because they wanted me to change many things that I afraid to do.

    I restarted system and run amarok and smplayer again. It was the same, BUT AFTER I CHANGE THE AUDIO OUTPUT property from "alsa (0.0 - HDA Intel)" to "alsa", I GOT MULTIPLE SOUND. SO, at the moment, I can run more than one apps requiring audio at the same time (including the flash player on firefox).

    Thanks for the suggestions. I hope they will make a fix to my laptop's mute problem (I have to switch on mute button on my laptop, cos it disables it by itself after every restarts) after restarts.
    ok ... Great !!

    Glad to read you succeeded. You had me wondering for a while.

    I still have pulse installed on my PC. I did not remove it. BUT I did deselect it from my applications (choosing alsa instead).

  10. #10
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,853
    Blog Entries
    14

    Default Re: Getting sound only from one app while running multiple a

    Quote Originally Posted by caf4926 View Post
    Normal behaviour for Linux. Close one before starting the other.
    Not on my machines. Notification sounds mix nicely with music. Music in Amarok and a DVB in Kaffeine, same thing.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •