cwAudioDeviceAlsa.cpp : zero initialize buf[] in _devReadBuf().

This commit is contained in:
kevin 2023-05-25 16:01:20 -04:00
parent 64d8c8e5b0
commit a4188a7ff0

View File

@ -658,7 +658,7 @@ namespace cw
unsigned smpCnt = chCnt * frmCnt; unsigned smpCnt = chCnt * frmCnt;
unsigned byteCnt = smpCnt * bytesPerSmp; unsigned byteCnt = smpCnt * bytesPerSmp;
char buf[ byteCnt ]; char buf[ byteCnt ]{0};
// get the incoming samples into buf[] ... // get the incoming samples into buf[] ...
err = snd_pcm_readi(pcmH,buf,frmCnt); err = snd_pcm_readi(pcmH,buf,frmCnt);