playstring = "SOUND8.wav"; PlaySound(@"C:\Program Files\Final\sounds\"+playstring );
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Sound api only supports pcm wave files
Collapse
X
-
Thanks for this tidbit.Originally posted by Mindset View PostAfter some investigation and trial and error it appears that not all .wav files are the same.
You have to look in the properties section and check that the audio format is PCM and not for instance mpeg Layer-3 which will no longer work.RayNinjaTrader Customer Service
Comment
-
In an indicator that I am working on now, the values of an enumeration correspond to specific .wav files that are located in the Ninjatrader Sounds folder. The user is limited to choosing from the values of the enumeration. This has two disadvantages:Originally posted by NinjaTrader_Jason View PostHello ZTRade101,
Unfortunately, I am not sure if I follow. Where exactly in the software are you choosing sound files; what drop down list do you refer?
- The number of sound files that the user can choose from is limited.
- If I code the indicator to look for files with names that exist in the Sounds folder of MY computer (sounds that I have ADDED to the folder on my own), but those sounds do not exist in the Sounds folder of the USER'S computer, there will be an error if the user tries to choose those sounds.
The ideal solution would be if, upon clicking on one of the lines in the indicator properties, a Windows "Open File" dialog box would open, allowing the user to pick a .wav file anywhere on the user's computer. I have not seen a file picking option like this in any other indicator. Can it be done?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
620 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
566 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment