Exemple #1
0
        public override void Play()
        {
            if (SourceVoice != null)
            {
                _playItem.Pan    = Pan;
                _playItem.Pitch  = Pitch;
                _playItem.Volume = Volume;

                SourceVoice.Play(_playItem);
            }
        }
Exemple #2
0
        public override void Play()
        {
            SourceVoice.SourceVoice.BufferEnd += SourceVoiceOnBufferEnd;

            SourceVoice.Play(_playItem);

            Task.Delay(1000).Wait();

            _overlapSourceVoice.SourceVoice.BufferEnd += SourceVoiceOnBufferEndOverlap;

            _overlapSourceVoice.Play(_playItem);
        }
Exemple #3
0
 private void SourceVoiceOnBufferEnd(IntPtr intPtr)
 {
     SourceVoice.Play(_playItem);
 }