# AddAudioFile Method The AddAudioFile method adds an audio file to the AudioFiles collection. Syntax
    SiteKiosk.CDRecording.AddAudioFile(path)
Parameters
path | String that specifies the absolute path of the file.
Return Value None. Remarks If RecordMode is 1, the files of the AudioFiles collection will be recorded. If it is 0, the files of the RootDirectory object will be recorded. Examples The following example adds a few files to the AudioFiles collection and starts recording without simulating.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    if (SiteKiosk.CDRecording.RecorderState)
    {
       SiteKiosk.CDRecording.RecordMode = 1;
       SiteKiosk.CDRecording.Title = "My new CD";
       SiteKiosk.CDRecording.AddAudioFile("c:/myaudio1.wav");
       SiteKiosk.CDRecording.AddAudioFile("c:/myaudio2.wav");
       SiteKiosk.CDRecording.Record(false, true);
    }
    </SCRIPT>
Applies to SiteKiosk v6.0 (and later versions). Back to top