diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-07-23 21:26:30 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-07-23 21:26:30 +0100 |
| commit | b1d1488de60dfff8b89872f863098a884133852f (patch) | |
| tree | 71bff59b52ada4ab5d74a74f2186ac893d624a04 /Waveout.c | |
| parent | 0804f4a994d4d16438baa207f7cd0ba8400e9494 (diff) | |
New upstream version 0.0.0.72.1upstream/0.0.0.72.1
Diffstat (limited to 'Waveout.c')
| -rw-r--r-- | Waveout.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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
|
