Merge "Add comments to indicate code review was done for bugs" into mnc-dev
This commit is contained in:
@@ -321,6 +321,7 @@ native_init_failure:
|
||||
delete lpCallbackData;
|
||||
env->SetLongField(thiz, javaAudioRecordFields.nativeCallbackCookie, 0);
|
||||
|
||||
// lpRecorder goes out of scope, so reference count drops to zero
|
||||
return (jint) AUDIORECORD_ERROR_SETUP_NATIVEINITFAILED;
|
||||
}
|
||||
|
||||
|
||||
@@ -405,6 +405,7 @@ native_init_failure:
|
||||
delete lpJniStorage;
|
||||
env->SetLongField(thiz, javaAudioTrackFields.jniData, 0);
|
||||
|
||||
// lpTrack goes out of scope, so reference count drops to zero
|
||||
return (jint) AUDIOTRACK_ERROR_SETUP_NATIVEINITFAILED;
|
||||
}
|
||||
|
||||
|
||||
@@ -753,6 +753,7 @@ void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftV
|
||||
status = newTrack->initCheck();
|
||||
if (status != NO_ERROR) {
|
||||
ALOGE("Error creating AudioTrack");
|
||||
// newTrack goes out of scope, so reference count drops to zero
|
||||
goto exit;
|
||||
}
|
||||
// From now on, AudioTrack callbacks received with previous toggle value will be ignored.
|
||||
|
||||
Reference in New Issue
Block a user