+1 888 340 6572

PlaySound: Difference between revisions

From MultiCharts
No edit summary
No edit summary
Line 1: Line 1:
Plays the specified wave (.wav) sound file.  
Plays the specified wave (.wav) sound file.  


==== Usage ====
== Usage ==
<syntaxhighlight>PlaySound("PathFilename")</syntaxhighlight>


<syntaxhighlight>PlaySound("PathFilename")</syntaxhighlight>
Where:
Where: [[PathFilename]]  - a string expression specifying the path and filename of the wave file to be played  
 
:'''PathFilename''' - a string expression specifying the path and filename of the wave file to be played.
 
== Notes ==
* Use [http://www2.research.att.com/~ttsweb/tts/demo.php AT&T Labs Natural Voices® Text-to-Speech Demo] to generate your own sound files.


==== Example ====  
== Example ==


Play ding.wav sound file located in the root directory of the C: hard drive:  
Play ding.wav sound file located in the root directory of the C: hard drive:  


<syntaxhighlight>PlaySound("C:\ding.wav");</syntaxhighlight>  
<syntaxhighlight>PlaySound("C:\ding.wav");</syntaxhighlight>  


[[Category:Output]]
[[Category:Output]]

Revision as of 10:11, 9 February 2012

Plays the specified wave (.wav) sound file.

Usage

PlaySound("PathFilename")

Where:

PathFilename - a string expression specifying the path and filename of the wave file to be played.

Notes

Example

Play ding.wav sound file located in the root directory of the C: hard drive:

PlaySound("C:\ding.wav");