Added setVolume and mute methods to the wavesurfer class as the main end points for controlling the playback volume. Implementation to follow.
Create the Gain Node and add to the audio graph.
Wiring up the gain node to the source.
Added method for setting the gain on the WebAudio object. Takes a value between -1 and 1.
Implemented method for setting the volume of a wavesurfer object.
- Updated documentation
- Added method for retrieving the current gain from a WebAudio object
- Added value for saving the current volume
- Renamed the function mute to toggleMute
- Implemented and the toggleMute method
- Removed checking if the saved volume is -1 as the mute/unmuted indication. This since -1 is actually a legit volume value and there was the potential for confusion.
- Added a boolean to indicate if currently muted and updated the toggleMuted method to use that instead.
- Added a button to the sample to toggle muting the track
- Added a event handler in main.js to handle the button
- Updated to the button label
- Updated the button icon to use an available Boostrap Glyphicon for volume off
Moved the mute toggle button so that it's next to the other blue buttons.
Updated README with the setVolume and toggleMute methods.
Merge pull request #39 from svoctor/master

Volume Control and Mute