- alutLoadWAVFile( (ALbyte *)"jet.wav", &format, &data, &size, &freq, &loop );
- if (alGetError() != AL_NO_ERROR) {
- SG_LOG( SG_GENERAL, SG_ALERT, "Failed to load wav file.");
- }
-
- // Copy data to the internal OpenAL buffer
- alBufferData( buffer, format, data, size, freq );
- if (alGetError() != AL_NO_ERROR) {