def release(self): """ stops the channel and set it to none """ super().release() FMOD.stopChannel(self._channel) self._channel = None
def setSound(self, sound): """ sets source's sound """ FMOD.stopChannel(self._channel) self._sound = sound self._channel = FMOD.createChannel(self._sound, self._mode)