mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Safari doesnt support promise version of decodeAudioData
This commit is contained in:
parent
97399ba4c9
commit
841b7eee21
|
|
@ -224,7 +224,7 @@ export class AppRadioService implements OnDestroy {
|
|||
arrayBufferView[i] = audio.charCodeAt(i);
|
||||
}
|
||||
|
||||
this.audioContext.decodeAudioData(arrayBuffer).then((buffer) => {
|
||||
this.audioContext.decodeAudioData(arrayBuffer, (buffer) => {
|
||||
if (this.call.current) {
|
||||
this.audioSource = this.audioContext.createBufferSource();
|
||||
|
||||
|
|
@ -249,7 +249,7 @@ export class AppRadioService implements OnDestroy {
|
|||
EVENTS.forEach((event) => document.body.addEventListener(event, resume));
|
||||
}
|
||||
}
|
||||
}).catch(() => this.skip(true));
|
||||
}, () => this.skip(true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue