Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem in choosing sound_card. #39

Closed
iwrose opened this issue Feb 8, 2015 · 1 comment
Closed

There is a problem in choosing sound_card. #39

iwrose opened this issue Feb 8, 2015 · 1 comment

Comments

@iwrose
Copy link

iwrose commented Feb 8, 2015

 try:
        if subprocess.check_output('amixer | grep PCM'):
            sound_card = "PCM"
    except:
        sound_card = "Master"

the line "if subprocess.check_output('amixer | grep PCM'):¨ should be modified to:
if subprocess.check_output('amixer | grep PCM',shell='true'):

otherwise: it will choose Master but not PCM in my raspberry pi.

@taizilongxu
Copy link
Owner

Thanks very much! I will update in next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants