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

Thread: Could not open audio device for playback

  1. #1
    Join Date
    Feb 2008
    Beans
    101

    Smile Could not open audio device for playback

    udiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=music: Could not open audio device for playback. Device is being used by another application.

    Heron. Sound worked just fine yesterday. Seen this as a bug-report on the internet after googling, but can not find any fix to it. All help will be apriciated: )
    Acer 6291 : Ubuntu 7.10
    Huawei E220 drivers for linux: https://forge.vodafonebetavine.net/f...&release_id=19

  2. #2
    Join Date
    Jan 2008
    Beans
    97

    Re: Could not open audio device for playback

    Try restarting the computer and see if the problem solved. Indeed maybe "Device is being used by another application." so if you restart, "another application" may leave the sound device free.
    Also try closing all other applications that may use sound (sometimes even firefox cam make this problem (flash player uses the sound device))

  3. #3
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Could not open audio device for playback

    Rather than fulling rebooting, you could also log out, hit Ctrl-Alt-F1 and login to a terminal. Then type:

    Code:
    pkill -9 -u your_username
    exit
    Hit Ctrl-Alt-F7 and log back in.
    Don't try to make something "fast" until you are able to quantify "slow".

  4. #4
    Join Date
    Feb 2007
    Beans
    114

    Re: Could not open audio device for playback

    I am having the same problem. NO sound on video's or youtube. Following these instructions made me lose video sound.
    http://www.uluga.ubuntuforums.org/sh...d.php?t=772632

    bratliff



    Quote Originally Posted by mormor View Post
    udiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=music: Could not open audio device for playback. Device is being used by another application.

    Heron. Sound worked just fine yesterday. Seen this as a bug-report on the internet after googling, but can not find any fix to it. All help will be apriciated: )

  5. #5
    Join Date
    Aug 2008
    Beans
    1

    Re: Could not open audio device for playback

    Hello all,

    I am also a newbie in Ubuntu but what I've found it is that sometimes process become dead but still are living among the process list occupying valuable resources. These are known as "zombie" processes.

    What you have to do is to find which application may be grabbing the sound from you.

    Code:
    ps -ef
    This command should list you all the processes the machine is running. Probably that application was launched by your username so you only need to find it and kill it with:
    Code:
    kill -9 id_of_the_process
    My mplayer was blocking my sound so I just killed all instances related to it and my sound was released.

    Hope this helps.

  6. #6
    Join Date
    Feb 2008
    Beans
    392

    Re: Could not open audio device for playback

    1. You cannot kill zombie processes with the kill command. That is why they are called "zombie"
    2. You should only get zombie processes if the parent process is behaving badly or if you have killed init. To kill zombie processes, you may want to kill their parent processes and let init kill them.
    3. Zombie processes should not take up the audio buffer, but I am not sure about that...
    Customer: (angrily) "You said I would get 98 windows with this computer. Where are they?"
    Recent video card: Supports two DIFFERENT applications open at one time;
    My 6-year-old laptop with integrated graphics does that just fine

  7. #7
    Join Date
    Oct 2008
    Beans
    2

    Re: Could not open audio device for playback

    Quote Originally Posted by mormor View Post
    udiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=music: Could not open audio device for playback. Device is being used by another application.
    I've got the same problem. And there is nothing in list of devices, so i can't even choose one.

    my /etc/modprobe.d/sound contains:

    alias snd-card-0 snd-emu10k1
    options snd-emu10k1 index=0
    alias snd-card-0 snd-hda-intel
    options snd-hda-intel index=1

    That's seems to be ok, but it does not work from yesterday. I've even compiled a new reknel, because of another problem, and it does not work in both of them.

  8. #8
    Join Date
    Jul 2007
    Location
    Brugge, België
    Beans
    2,933

    Re: Could not open audio device for playback

    Correct me when I am wrong, but this sounds like the famous PulseAudio bug.

    In that it can only use one source at the time.

    I use ALSA instead of PulseAudio because of this. However it seems this bug has been fixed in Intrepid.

  9. #9
    Join Date
    Jan 2009
    Beans
    28

    Re: Could not open audio device for playback

    I'm using Intrepid and I just got the same error message. Is there a way to disable pulseaudio?

  10. #10
    Join Date
    May 2008
    Beans
    6

    Re: Could not open audio device for playback

    I don't think the bug was resolved, for I also got the same error message in Intrepid.

    I don't know how to disable pulse audio, but I can confirm that killing the pulseaudio process made the error go away and I got my sound back. Mine was related to flash, I'm sure. Not sure how safe killing the pulseadio process is, though.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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