Hi all,
my plan is simple : given n 3D locations, I want to hear the sound of them...
What I first did was to loop a TMediaPlayer, but as you well think, it was not so efficient.
Then, I tried to build a WaveForm's TMemoryStream of 1s, filling it with a pretty herz values and a distant volume level for every 3D locations...Inefficient, as other sounds may happen meanwhile...
I now think about MIDI note definition to produce a global note to be played, but how ?
Thanks by advance
--
DH
blueperfect@hotmail.fr
This sounds like another art project involving audio noise.. reading your question its really not clear what your intentions are, and what problem you face realizing them.
> {quote:title=N Depred wrote:}{quote}
> This sounds like another art project involving audio noise.. reading your question its really not clear what your intentions are, and what problem you face realizing them.
What I finally need is a sort of loop :
* building a TMemoryStream of 1s of Herz frequencies (with a volume that is calculated according a distance).
* playing that TMemoryStream (asynchrone)
* loop...
- I have the object that loops in background (inherited from TThread)...
- I have the procedure that builds a TMemoryStream of 1 frequency during a delay (ms)
- I know that PlaySound plays TMemoryStream, but using it doesnt play the sound since it takes a little time before the sound effectively plays...
I am actually taking a look at WaveOut (msdn)...
--
DH
blueperfect@hotmail.fr