You are not logged in.

#1 2006-12-26 10:51:12

adv
Member
Registered: 2006-12-26
Posts: 7

ALSA busy: no firefox with audacious

Hi Arch community,
I'm a new Arch-user, I'm coming from Gentoo.
All is ok here, but I've a problem with ALSA.
There problem is:
When audacious is running and is playing a song, if I try to open firefox and
if I try to see a Macromedia Flash movie (for example),
I view the movie but there is not the audio.
This is worth also for the contrary: if firefox, no audacious.
With audacious it appears a error-window:
126fs3451677.png
This happens also with frozen-bubble for example, when audacious is playing..

$ frozen-bubble
        [[ Frozen-Bubble-2.1.0 ]]
[...]
[SDL Init] ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave

I remember in Gentoo there was not this problem..
I opened without audio problems firefox with audacious, or frozen-bubble.
Can I solve also in ArchLinux?

Thanks for all, bye.


adv

Offline

#2 2006-12-26 13:07:17

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: ALSA busy: no firefox with audacious


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2006-12-26 22:54:45

adv
Member
Registered: 2006-12-26
Posts: 7

Re: ALSA busy: no firefox with audacious

Thanks for the reply.
mmh..
You know what Gentoo use for "the audio support on multi-apps"?
Because on Gentoo I had made nothing for this problem..
I don't know what to do, what should I do?

Thanks, bye.


adv

Offline

#4 2006-12-27 14:52:35

adv
Member
Registered: 2006-12-26
Posts: 7

Re: ALSA busy: no firefox with audacious

I'm trying to install oss2jack but when I try to makepkg fusd-kor:

adv@arch fusd-kor $ makepkg 
==> Entering fakeroot environment
==> Making package: fusd-kor 1.10.11-3 (Wed Dec 27 15:50:17 CET 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found fusd-kor-1.10-11.tar.gz in build dir
==>     Found fusd.rules in build dir
==> Validating source files with MD5sums
    fusd-kor-1.10-11.tar.gz ... Passed
    fusd.rules ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf fusd-kor-1.10-11.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
make -C ././kfusd
make[1]: Entering directory `/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd'
echo EXTRA_CFLAGS=-I/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/../include
EXTRA_CFLAGS=-I/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/../include
make -C /lib/modules/2.6.19-ARCH/build SUBDIRS=/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd EXTRA_CFLAGS=-I/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/../include modules
make[2]: Entering directory `/usr/src/linux-2.6.19-ARCH'
  CC [M]  /var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.o
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:60:26: error: linux/config.h: No such file or directory
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:70:35: error: linux/devfs_fs_kernel.h: No such file or directory
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: data definition has no type or storage class
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: type defaults to 'int' in declaration of 'MODULE_PARM'
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: parameter names (without types) in function declaration
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: In function 'fusd_register_device':
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2036: warning: label 'register_failed2' defined but not used
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: At top level:
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2517: error: unknown field 'writev' specified in initializer
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2517: warning: initialization from incompatible pointer type
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: In function 'init_fusd':
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2941: warning: label 'fail2' defined but not used
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2929: warning: label 'fail7' defined but not used
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: In function 'cleanup_fusd':
/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2960: warning: implicit declaration of function 'devfs_remove'
make[3]: *** [/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.o] Error 1
make[2]: *** [_module_/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.19-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/abs/local/fusd-kor/src/fusd-kor-1.10-11/kfusd'
make: *** [obj.i686-linux/kfusd.ko] Error 2
==> ERROR: Build Failed.  Aborting...

Do you have some ideas?


adv

Offline

#5 2006-12-27 15:50:41

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: ALSA busy: no firefox with audacious

@ adv

before trying the difficult way, you should first look into your audacious configuration if the alsa plugin is responsible for audio output. If not change the settings.

Firefox with Flash needs to be started with aoss

$ aoss firefox

hightower

Offline

#6 2006-12-27 22:42:44

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: ALSA busy: no firefox with audacious

Perhaps reinstalling the flashplugin in firefox may help, too.

hightower

Offline

#7 2006-12-27 23:12:46

adv
Member
Registered: 2006-12-26
Posts: 7

Re: ALSA busy: no firefox with audacious

Hi hightower,
audacious is set for alsa plugin:
126fs3653512.png
I've reinstalled flashplugin with:

# pacman -S flashplugin

After I restarted firefox (with aoss firefox) on a random youtube's movie while audacious
was playing a song but nothing. Nothing flash audio, only audacious..

Why?

Thanks, adv.


adv

Offline

#8 2006-12-28 06:03:39

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: ALSA busy: no firefox with audacious

As far as I know, you need to be using alsa only (not alsa-oss) in order to be able to hear multiple audio streams. The flashplugin-beta package uses alsa, so it should work if you upgrade to that.


I am a gated community.

Offline

#9 2006-12-28 06:23:21

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: ALSA busy: no firefox with audacious


http://timtux.net/ - my personal blog about almost everything

Offline

#10 2006-12-28 12:57:25

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: ALSA busy: no firefox with audacious

Have you got a /etc/asound.conf file?

If not create it with this content:

#/etc/asound.conf start:
pcm.!default {
  type plug
  slave.pcm "dmixer"
  }
pcm.dsp0 {
  type plug
  slave.pcm "dmixer"
  }
pcm.dmixer {
  type dmix
  ipc_key 1024
  ipc_key_add_uid false
  ipc_perm 0666

 slave {
  pcm "hw:0,0"
  period_time 0
  period_size 1024
 buffer_size 8192
  rate 44100
  }
 bindings {
  0 0
  1 1
  }
   
}  

ctl.dmixer {
  type hw
  card 0
  }
#end.

Are you starting the alsa daemon at boot-up? If not, do so.

hightower

Offline

#11 2006-12-28 22:52:07

adv
Member
Registered: 2006-12-26
Posts: 7

Re: ALSA busy: no firefox with audacious

timtux wrote:

done.

hightower wrote:

Have you got a /etc/asound.conf file?

If not create it with this content:
Code:

#/etc/asound.conf start:
pcm.!default {
  type plug
  slave.pcm "dmixer"
  }
pcm.dsp0 {
  type plug
  slave.pcm "dmixer"
  }
pcm.dmixer {
  type dmix
  ipc_key 1024
  ipc_key_add_uid false
  ipc_perm 0666

slave {
  pcm "hw:0,0"
  period_time 0
  period_size 1024
buffer_size 8192
  rate 44100
  }
bindings {
  0 0
  1 1
  }
   
}

ctl.dmixer {
  type hw
  card 0
  }
#end.


Are you starting the alsa daemon at boot-up? If not, do so.

hightower

done.
But nothing, I tryed to start "aoss firefox" and saw a video.. this is terminal output:

$ aoss firefox
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
[...]

Ideas? =

Thanks for all, adv.


adv

Offline

#12 2006-12-29 13:22:43

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: ALSA busy: no firefox with audacious

Nope hmm Try other programss, like xmms + mplayer or something


http://timtux.net/ - my personal blog about almost everything

Offline

#13 2006-12-29 16:48:46

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: ALSA busy: no firefox with audacious

Don't run aoss firefox if you got the latest flashplugin, just run firefox normally. Like I said, you need to be running everything in alsa, not alsa-oss. I'm also not sure what the point of that asound.conf file is...


I am a gated community.

Offline

Board footer

Powered by FluxBB