Skip to content
Snippets Groups Projects
Commit 40d29c3b authored by Rafaël Carré's avatar Rafaël Carré
Browse files

alsa : remove write only variable

parent bdefa89a
Branches
Tags
No related merge requests found
......@@ -1009,7 +1009,6 @@ void AlsaLayer::audioCallback (void)
// Additionally handle the mic's audio stream
int micAvailBytes;
int micAvailPut;
int toPut;
SFLDataFormat* in = NULL;
......@@ -1024,7 +1023,6 @@ void AlsaLayer::audioCallback (void)
if (micAvailBytes <= 0)
return;
micAvailPut = getMainBuffer()->availForPut();
toPut = (micAvailBytes <= framesPerBufferAlsa) ? micAvailBytes : framesPerBufferAlsa;
in = (SFLDataFormat*) malloc (toPut * sizeof (SFLDataFormat));
toPut = read (in, toPut* sizeof (SFLDataFormat));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment