public int CreateStreamFromStreamingUrl(string streamingUrl) { int stream = proxy.CreateStreamFromUrl(streamingUrl, GetDefaultFlags()); ThrowIfStreamIsInvalid(stream); return(stream); }
private int CreateStreamToUrl(string urlToResource) { int stream = bassServiceProxy.CreateStreamFromUrl( urlToResource, BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_SAMPLE_MONO | BASSFlag.BASS_SAMPLE_FLOAT); if (stream == 0) { throw new BassAudioServiceException(bassServiceProxy.GetLastError()); } return(stream); }