From 61e275af765a03892e01709418057493fd76b4ca Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sat, 27 Dec 2014 00:04:04 +0100 Subject: [PATCH] Fix usage of start tag in Gstreamer --- .../Playback/GstreamerSharp/CGstreamerSharpAudioStream.cs | 2 +- Vocaluxe/Lib/Sound/Playback/PortAudio/CPt1.cs | 3 +-- Vocaluxe/Lib/Sound/Playback/PortAudio/CSyncTimer.cs | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudioStream.cs b/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudioStream.cs index c66ba54b..7a6fc6a4 100644 --- a/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudioStream.cs +++ b/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudioStream.cs @@ -175,7 +175,7 @@ namespace Vocaluxe.Lib.Sound.Playback.GstreamerSharp // Passing CLOCK_TIME_NONE here causes the pipeline to block for a long time so with // prescan enabled the pipeline will wait 500ms for stream to initialize and then continue // if it takes more than 500ms, duration queries will be performed asynchronously - Message msg = _Element.Bus.TimedPopFiltered(prescan ? ulong.MaxValue : 0L, MessageType.AsyncDone | MessageType.Error | MessageType.DurationChanged); + Message msg = _Element.Bus.TimedPopFiltered(prescan ? ulong.MaxValue : 0L, MessageType.AsyncDone | MessageType.Error); if (!_OnMessage(msg)) { _Dispose(true); diff --git a/Vocaluxe/Lib/Sound/Playback/PortAudio/CPt1.cs b/Vocaluxe/Lib/Sound/Playback/PortAudio/CPt1.cs index ea854457..a4a7d561 100644 --- a/Vocaluxe/Lib/Sound/Playback/PortAudio/CPt1.cs +++ b/Vocaluxe/Lib/Sound/Playback/PortAudio/CPt1.cs @@ -49,8 +49,7 @@ namespace Vocaluxe.Lib.Sound.Playback.PortAudio _CurrentTime = value; _OldTime = value; - _Timer.Reset(); - _Timer.Start(); + _Timer.Restart(); } } diff --git a/Vocaluxe/Lib/Sound/Playback/PortAudio/CSyncTimer.cs b/Vocaluxe/Lib/Sound/Playback/PortAudio/CSyncTimer.cs index 887c37cf..7a924663 100644 --- a/Vocaluxe/Lib/Sound/Playback/PortAudio/CSyncTimer.cs +++ b/Vocaluxe/Lib/Sound/Playback/PortAudio/CSyncTimer.cs @@ -44,8 +44,7 @@ namespace Vocaluxe.Lib.Sound.Playback.PortAudio { _ExternTime.Time = value; _SetValue = value; - _Timer.Reset(); - _Timer.Start(); + _Timer.Restart(); } }