[Openal] Mac OS X OpenAL
Peter Mulholland
darkmatter at blueyonder.co.uk
Tue Apr 10 15:21:11 PDT 2007
Hello Filip,
Tuesday, April 10, 2007, 5:59:05 PM, you wrote:
> Hello, Im working on a sound manager for a multiplatform game engine
> and Im new to OpenAL. I have a few general questions that I cant seem
> to locate answers for:
> 1. alut.h was removed from OpenAL 1.1 and the headers are gone from
> teh framework on OS X. the tutorials Ive read had these 4 calls in the
> intro and therefore I need this behavior to work in order to do
> anything as well:
> alutInit(NULL, 0);
> alutLoadWAVFile((ALbyte*)"filename.wav", &format, &data, &size, &freq);
> alutUnloadWAV(format, data, size, freq);
> alutExit();
> Do I use CoreAudio or quicktime calls for this and somehow create a
> buffer to pass to this method?
->>alBufferData(Buffer, format, data, size, freq);
You can do, or you can load the WAV yourself. The format isn't very
hard to parse. Better still, store your sound effects in another
format such as Vorbis, and use libvorbisfile which is pretty easy.
--
Best regards,
Peter mailto:darkmatter at blueyonder.co.uk
More information about the Openal
mailing list