CircuitPython/audiocore.py

changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
--- a/CircuitPython/audiocore.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audiocore.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class Mixer():
+    playing = 0
+    sample_rate = 0
+    
     def __init__(self, channel_count=2, buffer_size=1024):
         pass
     
@@ -19,41 +22,23 @@
     
     def stop_voice(self, voice=0):
         pass
-    
-    @property
-    def playing(self):
-        pass
-    
-    @property
-    def sample_rate(self):
-        pass
 
 class RawSample():
+    sample_rate = 0
+    
     def __init__(self, buffer, *, channel_count=1, sample_rate=8000):
         pass
     
     def deinit(self):
         pass
-    
-    @property
-    def sample_rate(self):
-        pass
 
 class WaveFile():
+    sample_rate = 0
+    bits_per_sample = 0
+    channel_count = 0
+    
     def __init__(self, file, buffer=None):
         pass
     
     def deinit(self):
         pass
-    
-    @property
-    def sample_rate(self):
-        pass
-    
-    @property
-    def bits_per_sample(self):
-        pass
-    
-    @property
-    def channel_count(self):
-        pass

eric ide

mercurial