summaryrefslogtreecommitdiff
path: root/Waveout.c
diff options
context:
space:
mode:
Diffstat (limited to 'Waveout.c')
-rw-r--r--Waveout.c10
1 files changed, 9 insertions, 1 deletions
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