fix #3150: can now create dispatcher with 0 volume

This commit is contained in:
Amish Shah
2019-03-22 12:43:51 +00:00
parent be2f78851f
commit 745e18b823

View File

@@ -5,9 +5,9 @@ const EventEmitter = require('events');
* @extends {EventEmitter}
*/
class VolumeInterface extends EventEmitter {
constructor({ volume = 0 } = {}) {
constructor({ volume = 1 } = {}) {
super();
this.setVolume(volume || 1);
this.setVolume(volume);
}
/**