Wave (.wav)
Introduction
SoundEffect and SoundEffectInstance
ExplosionSound.Play();ExplosionSound.Play(volume:0.5f, pitch:0, pan:0);SoundEffectInstance.Volume = 1;
SoundEffectInstance.Play();
await TimeManager.DelaySeconds(0.5f);
ExplosionSound.Volume = 0.5f;
Adding a .wav to a FRB project

Playing a SoundEffect in custom code
WAV and XNB Files





Global SoundEffect, Screen/Entity SoundEffectInstance

SoundEffect in Global Content Files 
SoundEffectInstance in a Screen, using the same .wav file as the SoundEffect in GlobalContent
Last updated
Was this helpful?