CircuitPython/audiocore.py

changeset 6
81a2208f13e4
child 7
e336d6afc5a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/audiocore.py	Wed Aug 28 19:53:19 2019 +0200
@@ -0,0 +1,59 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'audiocore' module.
+"""
+
+class Mixer():
+    def __init__(self, channel_count=2, buffer_size=1024):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    def play(self, sample, *, voice=0, loop=False):
+        pass
+    
+    def stop_voice(self, voice=0):
+        pass
+    
+    @property
+    def playing(self):
+        pass
+    
+    @property
+    def sample_rate(self):
+        pass
+
+class RawSample():
+    def __init__(self, buffer, *, channel_count=1, sample_rate=8000):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    @property
+    def sample_rate(self):
+        pass
+
+class WaveFile():
+    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