Пример #1
0
    def Stop(self):
        if not self.__isStarted:
            return

        Component.Stop(self)
        pyplot.close()

        self.__isStarted = False
Пример #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()