Article ID: 10069
INFO:  Where does PlaySound look for the audio (wav) files?
INFO
Applies To: ITScriptNet V1/V2
Where do the Audio files need to be loaded for PlaySound to play them?
DETAILS

In ITScriptNet versions 1.2c (5) and before, the wave files must be located in the ITScriptNet installation directory on the portable terminal. Whan calling PlaySound do not specify a path to the audio files, as the ITScriptNet directory is always pre-pended to the path.

In ITScriptNet versions 1.2c (6) and higher, the working directory will only be pre-pended to the file name if no path is specified. If you specify a path in PlaySound, the terminal will use it. This allows you to play audio files located anywhere on the terminal.

Example 1:

PlaySound(“test.wav”)
All versions will look for test.wav in the ITScriptNet directory.

Example 2:

PlaySound(“\IPSM\ITScriptNet Plus\test.wav”)
ITScriptNet 1.2c (5) and prior will fail to play the file.
ITScriptNet 1.2c (6) and higher will locate and play the file if it exists.

This article last updated: 1/1/2009 12:00:00 AM
Please help us improve the Knowledge Base by rating this article.
    © 1997-2026 Z-Space Technologies - a BCA Innovations Company - All rights reserved