Private Sub VMR_StopRecordingImmediately( blnFireCallBack As Boolean )
If blnRecording = False Then
Return
End If
blnRecording = False
SafetyTimer.Enabled = False
blnSetFireCallBack = blnFireCallBack
streamer.StopRecording
output.Close
#if NOT(RUN_EMULATOR)
VMR_CloseWaveFile(GeneralLib.GL_GetTempFolder, WaveFileTempFileName)
'******************** This line generates the error after changing TargetSDK
If LameEncoder.SetFiles(File.Combine(GeneralLib.GL_GetTempFolder, WaveFileTempFileName), File.Combine(GeneralLib.GL_GetTempFolder, Mp3FileTempFileName)) Then
'LameEncoder.SetQuality(LameEncoder.LAME_PRESET_STANDARD) ' adjust to suit
LameEncoder.Encode
Else
If blnSetFireCallBack = True And ModuleDoneEvent <> "" Then
CallSubDelayed3( JobEventTargetModule, ModuleDoneEvent, "", False )
End If
End If
#end If
End Sub