It appears that NT8 does not know where its "sounds" folder is.
The help website example below shows that you have to type in an explicit path.
PlaySound(@"C:\mySound.wav");
I put a wav file in the "C:\" location and was able to play that file from an indicator but it played nonstop even though the code is to play only on FirstTickOfBar as shown below.
protected override void OnBarUpdate()
{
if(IsFirstTickOfBar && State != State.Historical)PlaySound(@"C:\beep.wav");
}
When specifying just the wav file name like in NT7, I keep getting error messages:"Please be sure a sound file exists at the specified location.
Please provide info on how to play wave files residing in the sounds folder for both PlaySound and Alerts.
Thanks.
Comment