Removing Sources and Buffers?

Hi,

my program uses a couple of wav files. When one is played, is supposed to be removed and a new one is supposed to be loaded a few seconds later.

My problem is, that I don’t know how I can remove a file from the openal context.

I found the methods deleteSource and deleteBuffer, but I couldn’t figure I out, if I can use them and if how.

Thanks for Help

Diggi

You should do a web search for alDeleteSources and alDeleteBuffers. Any example C/C++ you find using those routines should work fine when ported over to JOAL.