public void TestCreateStreamFromUrl()
        {
            const int StreamToUrl = 100;

            proxy.Setup(p => p.CreateStreamFromUrl("url-to-streaming-resource", It.IsAny <BASSFlag>())).Returns(
                StreamToUrl);

            var result = streamFactory.CreateStreamFromStreamingUrl("url-to-streaming-resource");

            Assert.AreEqual(StreamToUrl, result);
        }
        public float[] ReadMonoSamplesFromStreamingUrl(string streamingUrl, int sampleRate, int secondsToDownload)
        {
            int stream = streamFactory.CreateStreamFromStreamingUrl(streamingUrl);

            return(bassResampler.Resample(stream, sampleRate, secondsToDownload, 0, mixerStream => new ContinuousStreamSamplesProvider(new BassSamplesProvider(proxy, mixerStream))));
        }