OpenAL: alBufferData returns AL_INVALID_VALUE even though input variables *look* OK?
问题 So, I'm building a threaded IMA ADPCM decoder streaming audio data to OpenAL (see below for short description) but I've run into some trouble. One of my issues is that sometimes my call to alBufferData: alBufferData(*bufferID, format, pcmData, sizeInBytes, bitRate); returns AL_INVALID_VALUE even though, when checking the parameters they look, e.g., like this: bufferID='109770616', format='AL_FORMAT_STEREO16', dataPtr='109754188', sizeInBytes='8164' Any clues, anyone? The actual sound being