Пример #1
0
        public int CreateMixerStream(int sampleRate)
        {
            int mixerStream = proxy.CreateMixerStream(sampleRate, BassConstants.NumberOfChannels, GetDefaultFlags());

            ThrowIfStreamIsInvalid(mixerStream);
            return(mixerStream);
        }
        private int CreateMixerStream(int sampleRate)
        {
            int mixerStream = bassServiceProxy.CreateMixerStream(
                sampleRate,
                1,
                BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_SAMPLE_MONO | BASSFlag.BASS_SAMPLE_FLOAT);

            if (mixerStream == 0)
            {
                throw new BassAudioServiceException(bassServiceProxy.GetLastError());
            }

            return(mixerStream);
        }