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 df2892774f
commit 51f5bfbc4b

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;
}