Update openal function