GNOME Bugzilla – Bug 335620
alsasink does not work when dmix is enabled
Last modified: 2007-01-23 11:44:22 UTC
alsasink does not work when dmix is enabled. It does work when it is disabled. This used to work fine earlier. Error from gstreamer-properties when testing alsasink: "ALSA - Advanced Linux Sound Architecture: Could not open resource for writing." In console: gstreamer-properties-Message: Error running pipeline 'ALSA - Advanced Linux Sound Architecture': Could not open resource for writing. [gstalsasink.c(740): gst_alsasink_open (): /pipeline0/alsasink1: Playback open error: Invalid argument] /etc/asound.conf: pcm.swmix { type dmix ipc_key 313 slave { pcm "hw:0,0" period_time 0 period_size 1024 buffer_size 8192 } bindings { 0 0 1 1 } } pcm.!default { type plug slave.pcm "swmix" }
Also note that dmix works fine with for example xine.
This is what I'm using for a /etc/asound.conf, and it's working fine here: pcm.ossmix { type dmix ipc_key 1024 # must be unique! slave { pcm "hw:0,0" # you cannot use a "plug" device here, darn. period_time 0 period_size 2048 # must be power of 2 buffer_size 8192 # dito. It rate 96000 } bindings { 0 0 # from 0 => to 0 1 1 # from 1 => to 1 } } pcm.!default { type plug slave.pcm "ossmix" # use our new PCM here }
Using that as asound.conf doesn't change anything for me. This is an M-Audio Audiophile 2496 .. (ICE1712/Envy24)
must be due to the fact that the device we try to open is called "default". Maybe it needs something else?
We used "default" in 0.8 as well, and that worked fine with dmix. I'd be surprised if that was the problem.
No clue why this would happen, it's a simple open in NON_BLOCKING mode. Maybe the card does not support that flag... Added some more info in the error message. Can you retest with CVS core/base?
Ping? Is this still a problem with current GStreamer/ALSA versions?
Closing this bug report as no further information has been provided. Please reopen this bug if this is still an issue with current versions of core/base. Thanks!