From b1d1488de60dfff8b89872f863098a884133852f Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 23 Jul 2024 21:26:30 +0100 Subject: New upstream version 0.0.0.72.1 --- Waveout.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Waveout.c') diff --git a/Waveout.c b/Waveout.c index 6b5c987..22f05d3 100644 --- a/Waveout.c +++ b/Waveout.c @@ -95,6 +95,8 @@ int PlaybackCount = 0; char CaptureNames[16][256]= {""}; char PlaybackNames[16][256]= {""}; +int txLatency; + WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 2, 12000, 48000, 4, 16, 0 }; HWAVEOUT hWaveOut = 0; @@ -190,6 +192,9 @@ void txSleep(int mS) { // called while waiting for next TX buffer. Run background processes + if (mS < 0) + return; + while (mS > 50) { if (SoundMode == 3) @@ -356,6 +361,7 @@ void GetSoundDevices() HANDLE hStdin; +int onlyMixSnoop = 0; int InitSound(BOOL Report) { @@ -563,7 +569,7 @@ void PollReceivedSamples() lastlevelGUI = Now; - if ((Now - lastlevelreport) > 10000) // 10 Secs + if ((Now - lastlevelreport) > 60000) // 60 Secs { char HostCmd[64]; lastlevelreport = Now; @@ -703,6 +709,8 @@ extern int Number; // Number of samples waiting to be sent // Subroutine to add trailer before filtering +extern int SampleNo; + void SoundFlush() { // Append Trailer then wait for TX to complete -- cgit v1.2.3