Skip to content

Fix inputBuffer initialization#4

Open
wallneradam wants to merge 1 commit intonettoyeurny:masterfrom
wallneradam:record_init_fix
Open

Fix inputBuffer initialization#4
wallneradam wants to merge 1 commit intonettoyeurny:masterfrom
wallneradam:record_init_fix

Conversation

@wallneradam
Copy link
Contributor

No description provided.

}
if (p->recorderRecord) {
memset(p->inputBuffer, 0, sizeof(p->inputBuffer));
memset(p->inputBuffer, 0, (size_t) (p->inputBufferFrames * p->inputChannels));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with the original version? And don't we have to multiply by sizeof(short)?

@nettoyeurny
Copy link
Owner

Thanks for the PR, Adam, and sorry I didn't notice it until now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments