|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'audiobusio' module. |
|
8 """ |
|
9 |
|
10 class I2SOut(): |
|
11 def __init__(self, bit_clock, word_select, data, *, left_justified): |
|
12 pass |
|
13 |
|
14 def deinit(self): |
|
15 pass |
|
16 |
|
17 def play(self, sample, *, loop=False): |
|
18 pass |
|
19 |
|
20 def stop(self): |
|
21 pass |
|
22 |
|
23 @property |
|
24 def playing(self): |
|
25 pass |
|
26 |
|
27 def pause(self): |
|
28 pass |
|
29 |
|
30 def resume(self): |
|
31 pass |
|
32 |
|
33 @property |
|
34 def paused(self): |
|
35 pass |
|
36 |
|
37 class PDMIn(): |
|
38 def __init__(self, clock_pin, data_pin, *, sample_rate=16000, bit_depth=8, |
|
39 mono=True, oversample=64, startup_delay=0.11): |
|
40 pass |
|
41 |
|
42 def deinit(self): |
|
43 pass |
|
44 |
|
45 def record(self, destination, destination_length): |
|
46 pass |
|
47 |
|
48 @property |
|
49 def sample_rate(self): |
|
50 pass |