public override void Play() { if (SourceVoice != null) { _playItem.Pan = Pan; _playItem.Pitch = Pitch; _playItem.Volume = Volume; SourceVoice.Play(_playItem); } }
public override void Play() { SourceVoice.SourceVoice.BufferEnd += SourceVoiceOnBufferEnd; SourceVoice.Play(_playItem); Task.Delay(1000).Wait(); _overlapSourceVoice.SourceVoice.BufferEnd += SourceVoiceOnBufferEndOverlap; _overlapSourceVoice.Play(_playItem); }
private void SourceVoiceOnBufferEnd(IntPtr intPtr) { SourceVoice.Play(_playItem); }