Exemple #1
0
        private void InitializeAudioOut()
        {
            AppendMixedBuffer(0);
            AppendMixedBuffer(1);
            AppendMixedBuffer(2);

            _audioOut.Start(_track);
        }
        public AalHardwareDevice(int bufferTag, IAalOutput output, uint channelCount, uint sampleRate)
        {
            _bufferTag    = bufferTag;
            _channelCount = channelCount;
            _sampleRate   = sampleRate;
            _output       = output;
            _releaseEvent = new AutoResetEvent(true);
            _trackId      = _output.OpenTrack((int)sampleRate, (int)channelCount, AudioCallback);
            _releasedTags = new Queue <long>();

            _buffer = new short[RendererConstants.TargetSampleCount * channelCount];

            _output.Start(_trackId);
        }
Exemple #3
0
        // StartAudioOut()
        public ResultCode StartAudioOut(ServiceCtx context)
        {
            _audioOut.Start(_track);

            return(ResultCode.Success);
        }
Exemple #4
0
        // StartAudioOut()
        public long StartAudioOut(ServiceCtx context)
        {
            _audioOut.Start(_track);

            return(0);
        }
Exemple #5
0
        public long StartAudioOut(ServiceCtx Context)
        {
            AudioOut.Start(Track);

            return(0);
        }