soundcloud: fix getVolume to match setVolume
This commit is contained in:
parent
c7f7dcfed3
commit
8b7cdfd4c3
3 changed files with 5 additions and 3 deletions
|
|
@ -896,7 +896,9 @@
|
|||
|
||||
SoundCloudPlayer.prototype.getVolume = function(cb) {
|
||||
if (this.soundcloud && this.soundcloud.ready) {
|
||||
return this.soundcloud.getVolume(cb);
|
||||
return this.soundcloud.getVolume(function(vol) {
|
||||
return cb(vol / 100);
|
||||
});
|
||||
} else {
|
||||
return cb(VOLUME);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue