PLAYSOUND Mnemonic - Play Sound File

Syntax

'PLAYSOUND'(filename,option)

Description

The 'PLAYSOUND' mnemonic starts or stops a .wav file (Windows, Windows NT, Windows for Workgroups, or Windows 95 only) specified in filename. To stop the .wav file, use the empty string ("") for the filename and any value for option.

Parameter

Description

filename

The .wav file location and path.

option

A value that determines how a .wav file is played.

 

Value 

Meaning

 

0

Play normally.

 

1

Play asynchronously (call returns before sound is done).

 

2

Play continuously (looped, and asynchronous).

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing