[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Sound ...
- From: Nagaev Boris <bnagaev@...>
- Date: Sun, 11 Oct 2015 16:26:48 +0300
On Sun, Oct 11, 2015 at 12:00 PM, JM Venet Magic.fr <email@example.com> wrote:
> Hello to whom it concerned,
> I'm a french devlopper on a financial plateform which accesses to world's
> financial markets.
> Currently , I programm with the TS2 plateform of the broker FXCM.
> When I programm some chart indicators, I need to ear a sound per example
> when the price reaches a certain value or with the indicator, when itself
> draws on the chart.
> on internet, I've seen that a DLL exists : lua-sound.dll .... but
> unfortunately I don't found it to download.
> for precision, I already use addon's by lua compaible DLL's such as lpeg.dll
> to obtain certains results on the programmed charts and it works well.
> My systems are all Windows 64 bits. (8.0 or .1 ; 10)
> Does someone give me a help for this.
> Sure I can obtain a response like "programm yourselves your own DLL" with
> the features you need :
> PLAY_SOUND ; STOP_SOUND ; LEVEL_SOUND Etc. Etc. which drives directly the
> sound system installed with Windows.
> But I don't know DLL's programmation ...
> Thanks for replying,
> Jean Marc Venet
I have found some libs:
1. winapi bindings by Steve J Donovan
It has beep() function.
This creates a short beep (using the speaker, not the beeper).
--Loads the selected audio (make sure the name is the same as the .wav file)
local audio1 = audio.loadSound( "audio1.wav" )
--Plays the audio on any available channel (theres up to 32 channels)
local audio1Channel = audio.play( audio1 )