Set mAudioTrack to null when AudioTrack initialization fails
Prevents potential problems when stopping the app.
This commit is contained in:
parent
df2892774f
commit
51f5bfbc4b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue