public Sound(string filename, float volume, bool looping) { _sound = new PssSound(filename); _soundPlayer = _sound.CreatePlayer(); this.Looping = looping; this.Volume = volume; }
public Sound(byte[] audiodata, float volume, bool looping) { _sound = new PssSound(audiodata); _soundPlayer = _sound.CreatePlayer(); this.Looping = looping; this.Volume = volume; }