Make sure a variable is set before use

master
Chris Robinson 2019-06-30 23:32:09 -07:00
parent 01300d9735
commit 90b1bc7b7a
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ int main(int argc, char **argv)
recorder.mRecTime, (recorder.mRecTime != 1.0f) ? "s" : ""
);
err = ALC_NO_ERROR;
alcCaptureStart(recorder.mDevice);
while((double)recorder.mDataSize/(double)recorder.mSampleRate < recorder.mRecTime &&
(err=alcGetError(recorder.mDevice)) == ALC_NO_ERROR && !ferror(recorder.mFile))