Set mAudioTrack to null when AudioTrack initialization fails

Prevents potential problems when stopping the app.
This commit is contained in:
Gabriel Jacobo
2013-07-31 16:25:50 -03:00
parent fb8455ec81
commit 53cf4bf3c6

View File

@@ -473,6 +473,7 @@ public class SDLActivity extends Activity {
if (mAudioTrack.getState() != AudioTrack.STATE_INITIALIZED) {
Log.e("SDL", "Failed during initialization of Audio Track");
mAudioTrack = null;
return -1;
}