Hmm, very interesting..!
Since my programmingskills arent so high, I didn't really get the point of this engine. But, I did get it working, played sounds, etc. It's gooo-ood. Plays them just well :)
But.. so.. emm. This code, which was found in the example;
Code:
VirtualOpenDevice(nil);
VirtualInitialize;
setlength(WaveBuffers, length(WaveBuffers) +1);
with WaveBuffers[high(WaveBuffers)] do begin
ID:= indexx;
XALLoadWave(buffer, pchar(sound));
end;
VirtualModifyListener(makevector(0.0, 0.0, 0.0), makevector(0.0, 0.0, 0.0), virtualopenal.ListenerOrientationarray);
SourceCreate(WaveBuffers[FindBuffer(indexx)].buffer, makevector(0, 0, 0), true , nil , nil);
VirtualSwapInSwapOut;
dofunstuff:= true;
..what it exactly does? Did I got it right: it creates a source of a sound? So, it wont just play a single sound, but it kinda creates a trigger which plays some sound, from a certain position? I should tell it where it is and where the listener is -> it calculates the volyme of sound..? Or am I dump? :D
Seems very good, I'm really looking forward to get this working properly..!
Bookmarks