CircuitPython/audiobusio.py

changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
diff -r 81a2208f13e4 -r e336d6afc5a6 CircuitPython/audiobusio.py
--- a/CircuitPython/audiobusio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audiobusio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class I2SOut():
+    playing = 0
+    paused = 0
+    
     def __init__(self, bit_clock, word_select, data, *, left_justified):
         pass
     
@@ -20,21 +23,15 @@
     def stop(self):
         pass
     
-    @property
-    def playing(self):
-        pass
-    
     def pause(self):
         pass
     
     def resume(self):
         pass
-    
-    @property
-    def paused(self):
-        pass
 
 class PDMIn():
+    sample_rate = 0
+    
     def __init__(self, clock_pin, data_pin, *, sample_rate=16000, bit_depth=8,
                  mono=True, oversample=64, startup_delay=0.11):
         pass
@@ -44,7 +41,3 @@
     
     def record(self, destination, destination_length):
         pass
-    
-    @property
-    def sample_rate(self):
-        pass

eric ide

mercurial