dacha 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,7 +116,11 @@ export class AudioSystem extends System {
|
|
|
116
116
|
};
|
|
117
117
|
resumeIfSuspended = () => {
|
|
118
118
|
if (this.audioContext.state === 'suspended') {
|
|
119
|
-
void this.audioContext
|
|
119
|
+
void this.audioContext
|
|
120
|
+
.resume()
|
|
121
|
+
.catch((err) => {
|
|
122
|
+
console.warn('Cannot resume a audio context', err);
|
|
123
|
+
});
|
|
120
124
|
}
|
|
121
125
|
};
|
|
122
126
|
initAudio(actor) {
|