fix typo
parent
3d795abe94
commit
527622142f
|
@ -17,19 +17,19 @@ AudioDevice = new FineAudio.AudioDevice();
|
||||||
|
|
||||||
Load your sound effects and music:
|
Load your sound effects and music:
|
||||||
```cs
|
```cs
|
||||||
StaticSound.Load(AudioSystem, "sword.wav");
|
StaticSound.Load(AudioDevice, "sword.wav");
|
||||||
StreamingSoundOgg.Load(AudioSystem, "my_song.ogg");
|
StreamingSoundOgg.Load(AudioDevice, "my_song.ogg");
|
||||||
```
|
```
|
||||||
|
|
||||||
Sound playback is controlled via sound instances.
|
Sound playback is controlled via sound instances.
|
||||||
Streaming sounds are already instances, but static sounds need to have instances created from them.
|
Streaming sounds are already instances, but static sounds need to have instances created from them.
|
||||||
|
|
||||||
```cs
|
```cs
|
||||||
var swordSound = StaticSound.LoadWav(AudioSystem, "sword.wav");
|
var swordSound = StaticSound.LoadWav(AudioDevice, "sword.wav");
|
||||||
var swordSoundInstance = swordSound.GetInstance();
|
var swordSoundInstance = swordSound.GetInstance();
|
||||||
swordSoundInstance.Play();
|
swordSoundInstance.Play();
|
||||||
|
|
||||||
MySong = StreamingSoundOgg.Load(AudioSystem, "my_song.ogg");
|
MySong = StreamingSoundOgg.Load(AudioDevice, "my_song.ogg");
|
||||||
MySong.Seek(6f); // seek to 6 seconds
|
MySong.Seek(6f); // seek to 6 seconds
|
||||||
MySong.Play();
|
MySong.Play();
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue