Ejemplo n.º 1
0
 def _set_cone_outer_angle(self, cone_outer_angle):
     al.alSourcef(self.source, al.AL_CONE_OUTER_ANGLE, cone_outer_angle)
     self._cone_outer_angle = cone_outer_angle
Ejemplo n.º 2
0
 def _set_cone_outer_gain(self, cone_outer_gain):
     al.alSourcef(self.source, al.AL_CONE_OUTER_GAIN, cone_outer_gain)
     self._cone_outer_gain = cone_outer_gain
Ejemplo n.º 3
0
 def _set_cone_inner_angle(self, cone_inner_angle):
     al.alSourcef(self.source, al.AL_CONE_INNER_ANGLE, cone_inner_angle)
     self._cone_inner_angle = cone_inner_angle
Ejemplo n.º 4
0
 def _set_pitch(self, pitch):
     al.alSourcef(self.source, al.AL_PITCH, max(0, pitch))
     self._pitch = pitch
Ejemplo n.º 5
0
 def _set_max_gain(self, max_gain):
     al.alSourcef(self.source, al.AL_MAX_GAIN, max(0, max_gain))
     self._max_gain = max_gain
Ejemplo n.º 6
0
 def _set_min_gain(self, min_gain):
     al.alSourcef(self.source, al.AL_MIN_GAIN, max(0, min_gain))
     self._min_gain = min_gain
Ejemplo n.º 7
0
 def _set_volume(self, volume):
     al.alSourcef(self.source, al.AL_GAIN, max(0, volume))
     self._volume = volume