Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyhale committed Feb 28, 2024
1 parent e74e428 commit e4c306e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ If `spatial` is set to `none`, all settings below are ignored.
```js
// Load your audio on start(), so it is ready when you need it.
start() {
this.audio = globalAudioManager.load('path_to_audiofile')
.then((playableNode) => {
return playableNode;
globalAudioManager.load('audio.mp3').then((playableNode) => {
this.click = playableNode;
});
}

Expand Down

0 comments on commit e4c306e

Please sign in to comment.