Example #1
0
 def set_pitch(self, pitch):
     context.lock()
     al.alSourcef(self._al_source, al.AL_PITCH, max(0, pitch))
     context.unlock()
Example #2
0
 def set_min_distance(self, min_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_REFERENCE_DISTANCE, min_distance)
     context.unlock()
Example #3
0
 def set_max_distance(self, max_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_MAX_DISTANCE, max_distance)
     context.unlock()
Example #4
0
 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)
Example #6
0
 def set_volume(self, volume):
     context.lock()
     al.alSourcef(self._al_source, al.AL_GAIN, max(0, volume))
     context.unlock()
Example #7
0
 def set_max_distance(self, max_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_MAX_DISTANCE, max_distance)
     context.unlock()
Example #8
0
 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)
Example #9
0
 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)
Example #10
0
 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)
Example #11
0
 def set_volume(self, volume):
     volume = float(volume)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_GAIN, max(0., volume))
Example #12
0
 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)
Example #13
0
 def set_pitch(self, pitch):
     pitch = float(pitch)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_PITCH, max(0., pitch))
Example #14
0
 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)
Example #15
0
 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()
Example #16
0
 def set_pitch(self, pitch):
     pitch = float(pitch)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_PITCH, max(0., pitch))
Example #17
0
 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()
Example #18
0
 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)
Example #19
0
 def set_min_distance(self, min_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_REFERENCE_DISTANCE, min_distance)
     context.unlock()
Example #20
0
 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)
Example #21
0
 def set_pitch(self, pitch):
     context.lock()
     al.alSourcef(self._al_source, al.AL_PITCH, max(0, pitch))
     context.unlock()
Example #22
0
 def set_volume(self, volume):
     context.lock()
     al.alSourcef(self._al_source, al.AL_GAIN, max(0, volume))
     context.unlock()
Example #23
0
 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()
Example #24
0
 def set_volume(self, volume):
     volume = float(volume)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_GAIN, max(0., volume))