def Stop(self):
        if not self.__isStarted:
            return

        Component.Stop(self)
        pyplot.close()

        self.__isStarted = False
Exemple #2
0
    def Stop(self):
        if not self.__isStarted:
            return

        Component.Stop(self)

        self.__isStarted = False

        if self.__audio is None:
            return

        self.__stream.stop_stream()
        self.__stream.close()
        self.__audio.terminate()