diff options
-rw-r--r-- | examples/alrecord.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/alrecord.c b/examples/alrecord.c index 30f5f792..c4984f99 100644 --- a/examples/alrecord.c +++ b/examples/alrecord.c @@ -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)) |