_buffers.erase( buffers_current );
}
+ _context = alcGetCurrentContext();
+ _device = alcGetContextsDevice(_context);
alcDestroyContext(_context);
alcCloseDevice(_device);
}
ALenum error = alGetError();
if ( error != AL_NO_ERROR ) {
string msg = "Failed to load wav file: ";
- msg.append(alutGetErrorString(error));
+ msg.append(alGetErrorString(error));
throw sg_io_exception(msg.c_str(), sg_location(samplepath));
return false;
}