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 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