I have successfully loaded and played a sound clip but want to update it from disk while the application is running. I'm calling alBufferData again for my clip but get Invalid Operation error. Both old and new sound clips are valid and work in isolation, it's only the reloading that fails. How can I reload sound data for a clip? I'm using OpenAL on OS X but remember having the same problem also on Windows with OpenAL-soft.
Calling alSourcei( srcID, AL_BUFFER, 0 );
before alBufferData()
solved the problem.