andrehaveman / spotify-node-applescript

Control Spotify on Mac OSX with NodeJS and AppleScript
MIT License
316 stars 39 forks source link

Added Mute and Unmute #9

Closed fastfrwrd closed 11 years ago

fastfrwrd commented 11 years ago

Pretty simple functionality - unmute only works when a mute has been run immediately before, and works by just using a simple variable to save the original volume value.

For example:

    spotify.mute(function() {}); // will set the volume to 0
    spotify.unmute(function() {}); // returns audio to where it was

    spotify.mute(function() {}); // mutes
    spotify.setVolume(50, function() {});
    spotify.unmute(function() {}); // will have no effect.
andrehaveman commented 11 years ago

I like this feature. Can you also write tests for it?

andrehaveman commented 11 years ago

Never mind about the tests, I already wrote a test for it. Thanks for your contribution.

fastfrwrd commented 11 years ago

Thank you!

P

On Feb 14, 2013, at 2:38 PM, André Haveman notifications@github.com wrote:

Never mind about the tests, I already wrote a test for it. Thanks for your contribution.

— Reply to this email directly or view it on GitHub.