public int PlayFile(string filename) { int stream = CreateStream(filename, BASSFlag.BASS_DEFAULT); if (bassServiceProxy.StartPlaying(stream)) { throw new BassAudioServiceException(bassServiceProxy.GetLastError()); } return(stream); }
public object PlayFile(string pathToFile) { int stream = proxy.CreateStream(pathToFile, BASSFlag.BASS_DEFAULT); if (stream == 0) { throw new BassException(proxy.GetLastError()); } if (!proxy.StartPlaying(stream)) { throw new BassException(proxy.GetLastError()); } return(stream); }