NinjaScript > Language Reference > Alert & Debug >

PlaySound()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

Plays a .wav file

 

Syntax

PlaySound(string fileName)

 

* Calls to this method are ignored on historical data, it will only work in real-time.

 

Parameters

fileName

File name of .wav file to play

 

 

Examples

// Plays the wav file mySound.wav

PlaySound(@"C:\mySound.wav");