CircuitPython/audioio.py

changeset 6
81a2208f13e4
child 7
e336d6afc5a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/audioio.py	Wed Aug 28 19:53:19 2019 +0200
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'audioio' module.
+"""
+
+class AudioOut():
+    def __init__(self, left_channel, *, right_channel=None,
+                 quiescent_value=0x8000):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    def play(self, sample, *, loop=False):
+        pass
+    
+    def stop(self):
+        pass
+    
+    @property
+    def playing(self):
+        pass
+    
+    def pause(self):
+        pass
+    
+    def resume(self):
+        pass
+    
+    @property
+    def paused(self):
+        pass

eric ide

mercurial