def set_pitch(self, pitch): context.lock() al.alSourcef(self._al_source, al.AL_PITCH, max(0, pitch)) context.unlock()
def set_min_distance(self, min_distance): context.lock() al.alSourcef(self._al_source, al.AL_REFERENCE_DISTANCE, min_distance) context.unlock()
def set_max_distance(self, max_distance): context.lock() al.alSourcef(self._al_source, al.AL_MAX_DISTANCE, max_distance) context.unlock()
def set_cone_outer_angle(self, cone_outer_angle): context.lock() al.alSourcef(self._al_source, al.AL_CONE_OUTER_ANGLE, cone_outer_angle) context.unlock()
def set_min_distance(self, min_distance): min_distance = float(min_distance) with context.lock: al.alSourcef(self._al_source, al.AL_REFERENCE_DISTANCE, min_distance)
def set_volume(self, volume): context.lock() al.alSourcef(self._al_source, al.AL_GAIN, max(0, volume)) context.unlock()
def set_max_distance(self, max_distance): max_distance = float(max_distance) with context.lock: al.alSourcef(self._al_source, al.AL_MAX_DISTANCE, max_distance)
def set_cone_outer_gain(self, cone_outer_gain): cone_outer_gain = float(cone_outer_gain) with context.lock: al.alSourcef(self._al_source, al.AL_CONE_OUTER_GAIN, cone_outer_gain)
def set_volume(self, volume): volume = float(volume) with context.lock: al.alSourcef(self._al_source, al.AL_GAIN, max(0., volume))
def set_cone_outer_angle(self, cone_outer_angle): cone_outer_angle = float(cone_outer_angle) with context.lock: al.alSourcef(self._al_source, al.AL_CONE_OUTER_ANGLE, cone_outer_angle)
def set_pitch(self, pitch): pitch = float(pitch) with context.lock: al.alSourcef(self._al_source, al.AL_PITCH, max(0., pitch))
def set_cone_outer_gain(self, cone_outer_gain): context.lock() al.alSourcef(self._al_source, al.AL_CONE_OUTER_GAIN, cone_outer_gain) context.unlock()