Op 2010-06-14 18:28, dmitry boyarintsev het geskryf:
> 
> There's proper example in FCL how to use OpenAL to play .wav, .ogg .mp3 files.

I can't find an example for loading a .wav file. I managed to extract the
initialization and finalization code for OpenAL from the FCL examples, but
now the main part is the call  alSourcePlay(buffer) , but I don't know how
to populate the buffer with a WAV file.

Any hints or sample code. The sample included in FCL 2.4.1 loads MAD, A52,
OGG and ModPlug only. Google revealed a tutorial using AlutLoadWavFile(),
but that is in the "unofficial utilities library", it's not part of the
standard OpenAL 1.1 spec, and not included in Linux.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to