From 0804f4a994d4d16438baa207f7cd0ba8400e9494 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 13 Apr 2024 17:48:58 +0100 Subject: New upstream version 0.72 --- ALSASound.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ALSASound.c') diff --git a/ALSASound.c b/ALSASound.c index 3507e9f..5764e94 100644 --- a/ALSASound.c +++ b/ALSASound.c @@ -799,7 +799,8 @@ int OpenSoundCapture(char * CaptureDevice, int m_sampleRate, int Report) if ((err = snd_pcm_hw_params_set_channels(rechandle, hw_params, m_recchannels)) < 0) { - Debugprintf("cannot set rec channel count to 2 (%s)", snd_strerror(err)); + if (Report) + Debugprintf("cannot set rec channel count to 2 (%s)", snd_strerror(err)); m_recchannels = 1; @@ -854,10 +855,10 @@ int OpenSoundCapture(char * CaptureDevice, int m_sampleRate, int Report) snd_pcm_hw_params_set_rate(rechandle, hw_params, m_sampleRate, 0); snd_pcm_hw_params_set_channels(rechandle, hw_params, m_recchannels); - err = snd_pcm_hw_params_set_buffer_size(rechandle, hw_params, 65536); + // err = snd_pcm_hw_params_set_buffer_size(rechandle, hw_params, 65536); - if (err) - Debugprintf("cannot set buffer size (%s)", snd_strerror(err)); + // if (err) + // Debugprintf("cannot set buffer size (%s)", snd_strerror(err)); err = snd_pcm_hw_params_set_period_size(rechandle, hw_params, (snd_pcm_uframes_t) { 1024 }, (int) { 0 }); @@ -1266,6 +1267,7 @@ int InitSound(BOOL Quiet) int min = 0, max = 0, lastlevelreport = 0, lastlevelGUI = 0; UCHAR CurrentLevel = 0; // Peak from current samples +UCHAR CurrentLevelR = 0; // Peak from current samples void PollReceivedSamples() { -- cgit v1.2.3