Skip to content

Commit

Permalink
Crossorigin
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Nov 25, 2023
1 parent 07d8cbd commit ab940be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cacophony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export class Cacophony {
if (type === SoundType.HTML) {
const audio = new Audio();
audio.src = url;
audio.crossOrigin = 'anonymous';
audio.preload = "auto"
audio.load();
return new Sound(url, undefined, this.context, this.globalGainNode, SoundType.HTML);
}
return CacheManager.getAudioBuffer(url, this.context).then(buffer => new Sound(url, buffer, this.context, this.globalGainNode, type));
Expand Down

0 comments on commit ab940be

Please sign in to comment.