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);
            sampleFactory = new SampleBassFactory(resources.Get("Resources.Tracks.sample-track.mp3"));
            sample        = sampleFactory.CreateSample();

            updateSample();
        }
        public void Setup()
        {
            try
            {
                // Make sure that the audio device is not initialised.
                if (RuntimeInfo.OS != RuntimeInfo.Platform.Linux)
                {
                    Bass.CurrentDevice = 0;
                    Bass.Free();
                }
            }
            catch
            {
            }

            resources     = new DllResourceStore(typeof(TrackBassTest).Assembly);
            sampleFactory = new SampleBassFactory(resources.Get("Resources.Tracks.sample-track.mp3"));
            sample        = sampleFactory.CreateSample();

            updateSample();

            Bass.Init(0);
        }