1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#Region "FONCTION : GET AUDIO FILE"
Function GetAudioFile() As NRC_PLAYBACK_RET_CODE
'09/10/2007 RVO ON EFFACE LE FICHIER S'IL EXISTE
If File.Exists(_str_FileNamePath & ".wav") Then
AxAM_MediaPlayer.FileName = ""
File.Delete(_str_FileNamePath & ".wav")
End If
Dim nrc As NRC_PLAYBACK_RET_CODE
If ParametreApplication.FilePath_1.LastIndexOf("\") = (ParametreApplication.FilePath_1.Length - 1) Then
_str_FileNamePath = ParametreApplication.FilePath_1 & ParametreApplication.FileName_1
Else
_str_FileNamePath = ParametreApplication.FilePath_1 & "\" & ParametreApplication.FileName_1
End If
nrc = enice.SaveAsWAV(_lng_loggerID, _str_loggerIP, _lng_channel, _dt_RecStartDate, _dt_stopDate, _
_lng_ClsCallID, _str_ArchivePath, _lng_archiveIdHigh, _lng_archiveIdLow, _
_str_FileNamePath, _str_SCServerID)
Return nrc
End Function
#End Region |
Partager