Fertig für Android

This commit is contained in:
silas
2018-10-27 18:57:45 +02:00
parent f89354ea03
commit f82aff9442
10 changed files with 108 additions and 65 deletions

View File

@@ -418,10 +418,14 @@ class SoundManager {
return this.channels[channel];
}
async play(channel, audioOrOptions) {
async resume(){
if (typeof this.context.resume === "function") {
this.context.resume();
return this.context.resume();
}
}
async play(channel, audioOrOptions) {
this.resume();
channel = Helper.nonNull(channel, SoundManager.CHANNELS.DEFAULT);
if (Helper.isNull(audioOrOptions)) {
audioOrOptions = {};