<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_audio_adapter_change(self, audio_adapter):
 """Triggerd when settings of the audio adapter of the associated virtual machine have changed. in audio_adapter of type :class:`IAudioAdapter` raises :class:`VBoxErrorInvalidVmState` Session state prevents operation. raises :class:`VBoxErrorInvalidObjectState` Session type prevents operation. """

        if not isinstance(audio_adapter, IAudioAdapter):
            raise TypeError("audio_adapter can only be an instance of type IAudioAdapter")
        self._call("onAudioAdapterChange",
                     in_p=[audio_adapter])