sound in code

Created at 30 Aug 2012, 16:09
DA

daemon

Joined 30.08.2012

sound in code
30 Aug 2012, 16:09


Hi,

How can I add an alarm or sound in my code? e.g. if the price reaches some number.

Thank you in advance.


@daemon
Replies

admin
31 Aug 2012, 10:08

Hi

You can use the following function:

if(IsRealTime)//This makes sure that the sound will be played only for real time incoming data
{
	Notifications.PlaySound(@"C:\ExampleSound.mp3");
}

 


@admin