public void Setup() { bass = new BassTestComponents(); track = bass.GetTrack(); sample = bass.GetSample(); bass.Update(); }
static WeakReference <SampleChannel> runTest(SampleBass sample) { var channel = sample.GetChannel(); channel.Play(); // Creates the handle/adds to mixer. channel.Stop(); channel.Dispose(); return(new WeakReference <SampleChannel>(channel)); }
public void Setup() { // Initialize bass with no audio to make sure the test remains consistent even if there is no audio device. Bass.Init(0); resources = new DllResourceStore(typeof(TrackBassTest).Assembly); sample = new SampleBass(resources.Get("Resources.Tracks.sample-track.mp3")); channel = new SampleChannelBass(sample, channel => { }); updateSample(); }