From 527622142f93e3fae293c428c2ab70112878a5ed Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 20 Apr 2022 14:37:59 -0700 Subject: [PATCH] fix typo --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a6bdc33..215ce41 100644 --- a/README.md +++ b/README.md @@ -17,19 +17,19 @@ AudioDevice = new FineAudio.AudioDevice(); Load your sound effects and music: ```cs -StaticSound.Load(AudioSystem, "sword.wav"); -StreamingSoundOgg.Load(AudioSystem, "my_song.ogg"); +StaticSound.Load(AudioDevice, "sword.wav"); +StreamingSoundOgg.Load(AudioDevice, "my_song.ogg"); ``` Sound playback is controlled via sound instances. Streaming sounds are already instances, but static sounds need to have instances created from them. ```cs -var swordSound = StaticSound.LoadWav(AudioSystem, "sword.wav"); +var swordSound = StaticSound.LoadWav(AudioDevice, "sword.wav"); var swordSoundInstance = swordSound.GetInstance(); swordSoundInstance.Play(); -MySong = StreamingSoundOgg.Load(AudioSystem, "my_song.ogg"); +MySong = StreamingSoundOgg.Load(AudioDevice, "my_song.ogg"); MySong.Seek(6f); // seek to 6 seconds MySong.Play(); ```