def _set_up_orientation(self, orientation): val = (al.ALfloat * 6)(*(self._forward_orientation + orientation)) self._driver.lock() al.alListenerfv(al.AL_ORIENTATION, val) self._driver.unlock() self._up_orientation = orientation
def _set_up_orientation(self, orientation): val = (al.ALfloat * 6)(*map(float, (self._forward_orientation + orientation))) with self._driver.lock: al.alListenerfv(al.AL_ORIENTATION, val) self._up_orientation = orientation