def set_pan(self, pan, delay): now = get_serial() self.context.pan_time = now self.context.pan = pan if pcm_ok: self.pan_time = self.context.pan_time renpysound.set_pan(self.number, self.context.pan, delay)
def interact(self): """ Called (mostly) once per interaction. """ self.keep_queue = 0 if pcm_ok: if self.pan_time != self.context.pan_time: self.pan_time = self.context.pan_time renpysound.set_pan(self.number, self.context.pan, 0) if self.secondary_volume_time != self.context.secondary_volume_time: self.secondary_volume_time = self.context.secondary_volume_time renpysound.set_secondary_volume(self.number, self.context.secondary_volume, 0) if not self.queue and self.callback: self.callback() # E1102
def interact(self): """ Called (mostly) once per interaction. """ self.keep_queue = 0 if pcm_ok: if self.pan_time != self.context.pan_time: self.pan_time = self.context.pan_time renpysound.set_pan(self.number, self.context.pan, 0) if self.secondary_volume_time != self.context.secondary_volume_time: self.secondary_volume_time = self.context.secondary_volume_time result_volume = self.context.secondary_volume * self.context.tertiary_volume renpysound.set_secondary_volume(self.number, result_volume, 0) if not self.queue and self.callback: self.callback() # E1102