We now return nil instead of a null SoundData when getting recorded data fails.

This commit is contained in:
Bill Meltsner
2010-04-11 16:43:18 -04:00
parent 585e3ec3ee
commit 5f2197158d
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ namespace openal
alcMakeContextCurrent(0);
alcDestroyContext(context);
alcCaptureCloseDevice(capture);
if (capture) alcCaptureCloseDevice(capture);
alcCloseDevice(device);
}