base.py 402 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. from __future__ import division
  3. from ..__load__ import *
  4. import subprocess
  5. import threading
  6. import pyaudio
  7. class Base(threading.Thread):
  8. def __init__(self, **kwargs):
  9. super(Base, self).__init__()
  10. self.logger = Log.init(__name__)
  11. def play(self):
  12. pass
  13. def play_block(self):
  14. pass
  15. def stop(self):
  16. pass
  17. def is_playing(self):
  18. return False