deactivated SyncTimer in PortAudio, set AudioLatency to 100ms

This commit is contained in:
Alexander Eckart committed 2012-03-08 15:55:04 +01:00
1 parent fef418302e
commit bc4826552f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ namespace Vocaluxe.Base
public static EPlaybackLib PlayBackLib = EPlaybackLib.PortAudio;
public static ERecordLib RecordLib = ERecordLib.PortAudio;
public static EBufferSize AudioBufferSize = EBufferSize.b2048;
public static int AudioLatency = 0;
public static int AudioLatency = 100;
public static int BackgroundMusicVolume = 50;
public static EOffOn BackgroundMusic = EOffOn.TR_CONFIG_ON;
public static EBackgroundMusicSource BackgroundMusicSource = EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC;
+1 -1
View File
@@ -847,7 +847,7 @@ namespace Vocaluxe.Lib.Sound
float latency = buf.Length / _BytesPerSecond + CConfig.AudioLatency/1000f;
float time = _TimeCode - _data.BytesNotRead / _BytesPerSecond - latency;
_CurrentTime = _SyncTimer.Update(time);
_CurrentTime = time; // _SyncTimer.Update(time);
}
try