soundcloud: fix getVolume to match setVolume
This commit is contained in:
parent
c7f7dcfed3
commit
8b7cdfd4c3
3 changed files with 5 additions and 3 deletions
|
|
@ -103,6 +103,6 @@ window.SoundCloudPlayer = class SoundCloudPlayer extends Player
|
|||
|
||||
getVolume: (cb) ->
|
||||
if @soundcloud and @soundcloud.ready
|
||||
@soundcloud.getVolume(cb)
|
||||
@soundcloud.getVolume((vol) -> cb(vol / 100))
|
||||
else
|
||||
cb(VOLUME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue