Exemplo n.º 1
0
 def set_pitch(self, pitch):
     context.lock()
     al.alSourcef(self._al_source, al.AL_PITCH, max(0, pitch))
     context.unlock()
Exemplo n.º 2
0
 def set_min_distance(self, min_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_REFERENCE_DISTANCE, min_distance)
     context.unlock()
Exemplo n.º 3
0
 def set_max_distance(self, max_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_MAX_DISTANCE, max_distance)
     context.unlock()
Exemplo n.º 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()
Exemplo n.º 5
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)
Exemplo n.º 6
0
 def set_volume(self, volume):
     context.lock()
     al.alSourcef(self._al_source, al.AL_GAIN, max(0, volume))
     context.unlock()
Exemplo n.º 7
0
 def set_max_distance(self, max_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_MAX_DISTANCE, max_distance)
     context.unlock()
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 11
0
 def set_volume(self, volume):
     volume = float(volume)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_GAIN, max(0., volume))
Exemplo n.º 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)
Exemplo n.º 13
0
 def set_pitch(self, pitch):
     pitch = float(pitch)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_PITCH, max(0., pitch))
Exemplo n.º 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)
Exemplo n.º 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()
Exemplo n.º 16
0
 def set_pitch(self, pitch):
     pitch = float(pitch)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_PITCH, max(0., pitch))
Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 19
0
 def set_min_distance(self, min_distance):
     context.lock()
     al.alSourcef(self._al_source, al.AL_REFERENCE_DISTANCE, min_distance)
     context.unlock()
Exemplo n.º 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)
Exemplo n.º 21
0
 def set_pitch(self, pitch):
     context.lock()
     al.alSourcef(self._al_source, al.AL_PITCH, max(0, pitch))
     context.unlock()
Exemplo n.º 22
0
 def set_volume(self, volume):
     context.lock()
     al.alSourcef(self._al_source, al.AL_GAIN, max(0, volume))
     context.unlock()
Exemplo n.º 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()
Exemplo n.º 24
0
 def set_volume(self, volume):
     volume = float(volume)
     with context.lock:
         al.alSourcef(self._al_source, al.AL_GAIN, max(0., volume))