We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01b0ca commit 17e27ebCopy full SHA for 17e27eb
crates/wasm/site/show/audio-player.js
@@ -16,7 +16,7 @@ export function AudioPlayer(...urlList) {
16
this.buffers = await Promise.all(promises);
17
};
18
19
- (this.play = (soundId) => {
+ ((this.play = (soundId) => {
20
if (!this.buffers) return;
21
this.context.resume(); // For safari
22
const source = this.context.createBufferSource();
@@ -42,5 +42,5 @@ export function AudioPlayer(...urlList) {
42
// osc.connect(this.mediaStreamDestination);
43
// https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination
44
return this.mediaStreamDestination.stream;
45
- });
+ }));
46
}
0 commit comments