Giter Site home page Giter Site logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
nvm, sudo apt-get install python-alsaaudio fixed it!

Original comment by [email protected] on 25 Jun 2010 at 4:34

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
William, please see if this should be fixed in some way (e.g. handling the 
failure to load the module and just disabling the functionality, or exisitng 
with a nicer message)

Original comment by [email protected] on 25 Jun 2010 at 5:22

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Right, the Linux client now depends on python-alsaaudio for the mute sounds 
action. If there's a better way to mute audio on Linux, I'd like to know!

This shouldn't be a problem once I make a .deb that includes dependency 
information. Maybe there's a better way to handle the ImportError for people 
installing from source though...

Original comment by [email protected] on 25 Jun 2010 at 6:28

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
the mute action doesn't work, I'll see if I can find why. Btw wouldn't it be 
handy to create a deb instead of svn and make it depend on python-alsaaudio?

Original comment by [email protected] on 25 Jun 2010 at 6:31

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Hmm, I was worried that the method using alsaaudio wouldn't be portable. I 
wasn't sure what the best way to mute audio programmatically was. Can you tell 
me anything about your Linux system? I tested using Ubuntu 10.04.

Making a .deb is exactly what I plan on doing :). Thanks for being brave and 
checking out the bleeding edge source code!

Original comment by [email protected] on 25 Jun 2010 at 6:37

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
This seems to work for the sound,

amixer set Master mute

I'm running on a pretty default 10.04 with build-essentials, running on a asus 
eee 1000h.

Original comment by [email protected] on 25 Jun 2010 at 6:54

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
how about something like this:

    def handle_notification_unmute(self, notification):
        f=os.popen("amixer set Master unmute > /dev/null")

    def handle_notification_mute(self, notification):
        f=os.popen("amixer set Master mute > /dev/null")

    def handle_notification_toggle(self, notification):
        f=os.popen("amixer set Master toggle > /dev/null")


Don't know if this is correct, my python isn't that great. Anyway, this way you 
don't need the alsaaudio lib.

Original comment by [email protected] on 25 Jun 2010 at 10:30

from android-notifier.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Many modern Linux distros ship with PulseAudio for application-level audio. 
Might be prudent to determine if there's a better way to mute audio as iirc, PA 
doesn't like it when you mess with ALSA directly.

Off the top of my head, it would make sense to depend on the PA library and 
fall-back to ALSA if it doesn't exist.

Original comment by [email protected] on 10 Sep 2010 at 8:43

from android-notifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.