Sound.FromFile

static Sound FromFile(string filename)

   
string filename Name of the audio file! Supports .wav files.
RETURNS: Sound A sound object, or null if something went wrong.

Loads a sound effect from file! Currently, StereoKit only supports .wav files. Audio is converted to mono.

Examples

Basic usage

Sound sound = Sound.FromFile("BlipNoise.wav");
sound.Play(Vec3.Zero);