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