Bug 653128 - alsa-plugins-pulse - no sound if another app already use pulseaudio
Summary: alsa-plugins-pulse - no sound if another app already use pulseaudio
Status: RESOLVED FEATURE
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Sound (show other bugs)
Version: Final
Hardware: i686 openSUSE 11.3
: P5 - None : Normal with 5 votes (vote)
Target Milestone: ---
Assignee: Takashi Iwai
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 23:12 UTC by Alex Savin
Modified: 2010-11-22 12:27 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Savin 2010-11-11 23:12:09 UTC
User-Agent:       Opera/9.80 (X11; Linux i686; U; ru) Presto/2.6.30 Version/10.63

alsa-plugins-pulse - no sound if another app already use pulseaudio


Reproducible: Always

Steps to Reproduce:
1. start any app what support pulseaudio (for example: amarok), and start playing sound
2. start app what don't support pulseaudio(for example: flashplayer)  -  no sound from this app
3. if i press stop in first app and restart app what don't support pulseaudio - sound exist
Actual Results:  
if i try to use application (1) what don't support pulseaudio, when another app (2) already use pulseaudio: (1)app - no sound,  (2)app - sound exist

Expected Results:  
application what don't support pulseaudio should play sound, if another app already use pulseaudio
Comment 1 Takashi Iwai 2010-11-22 08:46:05 UTC
PA blocks the sound device exclusively, so this is the expected result.
If you are using another apps without PA, use pasuspender.  Or, set up the system to use always PA.  setup-pulse should turn it on.  If this still doesn't work, reopen, and let's fix for 11.4.
Comment 2 Alex Savin 2010-11-22 11:05:25 UTC
>>set up the system to use always PA.  setup-pulse should turn it on. 
PA is already on:
setup-pulseaudio --status
enabled

cat /etc/asound.conf
    pcm.pulse {
        type pulse
    }

    ctl.pulse {
        type pulse
    }


I tried to run setup-pulseaudio --enable again,
but /etc/asound.conf - not changed

I manually add:
	pcm.!default {
		type plug
		slave.pcm {
			type pulse
		}
	}
	
	ctl.!default {
		type pulse
	}

to /etc/asound.conf - and now my problem fixed!!!


Why setup-pulseaudio don't do it automatic? Is it's bug?
Comment 3 Alex Savin 2010-11-22 12:11:24 UTC
(In reply to comment #2)
> Why setup-pulseaudio don't do it automatic? Is it's bug?

ouh sorry, now I see /etc/asound.conf not exist by default... (and in this case used /etc/asound-pulse.conf)

(but, as i remember i don't create it(/etc/asound.conf) manually - probably it become from  previous opensuse versions )
Comment 4 Takashi Iwai 2010-11-22 12:27:57 UTC
Right, setup-pulse script sets up $ALSA_CONFIG_PATH environment variable to use /etc/asound-pulse.conf instead of changing /etc/asound.conf.  This makes the trick.  But, you can change /etc/asound.conf or ~/.asoundrc manually to achieve the same thing, too.