cwAudioDeviceAlsa.cpp : zero initialize buf[] in _devReadBuf().
This commit is contained in:
parent
64d8c8e5b0
commit
a4188a7ff0
@ -658,7 +658,7 @@ namespace cw
|
||||
unsigned smpCnt = chCnt * frmCnt;
|
||||
unsigned byteCnt = smpCnt * bytesPerSmp;
|
||||
|
||||
char buf[ byteCnt ];
|
||||
char buf[ byteCnt ]{0};
|
||||
|
||||
// get the incoming samples into buf[] ...
|
||||
err = snd_pcm_readi(pcmH,buf,frmCnt);
|
||||
|
Loading…
Reference in New Issue
Block a user