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(); ```