public SynthVoice(AudioFx audio, AudioChannels channel) { _audio = audio; Channel = channel; PlayingPitch = -1; Voices = new List <SourceVoice>(); StopDone = new ManualResetEvent(false); CancelStop = new ManualResetEvent(false); }
public Cue(AudioFx audio, AudioChannels channel, Stream stream) { Channel = channel; Sound = "Stream"; _audio = audio; //var s = Windows.ApplicationModel.Package.Current.InstalledLocation.OpenStreamForReadAsync(Path.Combine(_audio.Game.Content.RootDirectory, path)); // s.Wait(); // var stream = s.Result; _byteStream = ReadFully(stream); _voices = new List <SourceVoice>(); volume = 1f; }