SoundEffect
Introduction
Code Example
// SoundEffects load through the content pipeline, so there is no extension
SoundEffect soundEffect = FlatRedBallServices.Load<SoundEffect>(@"Content\mySound");
// to play the sound, just call Play:
soundEffect.Play();SoundEffectFile.Play(volume: 1, pitch: 0, pan: 0);Last updated
Was this helpful?