6:81a2208f13e4 | 7:e336d6afc5a6 |
---|---|
6 """ | 6 """ |
7 Module containing stubs for API generation of the 'audiobusio' module. | 7 Module containing stubs for API generation of the 'audiobusio' module. |
8 """ | 8 """ |
9 | 9 |
10 class I2SOut(): | 10 class I2SOut(): |
11 playing = 0 | |
12 paused = 0 | |
13 | |
11 def __init__(self, bit_clock, word_select, data, *, left_justified): | 14 def __init__(self, bit_clock, word_select, data, *, left_justified): |
12 pass | 15 pass |
13 | 16 |
14 def deinit(self): | 17 def deinit(self): |
15 pass | 18 pass |
18 pass | 21 pass |
19 | 22 |
20 def stop(self): | 23 def stop(self): |
21 pass | 24 pass |
22 | 25 |
23 @property | |
24 def playing(self): | |
25 pass | |
26 | |
27 def pause(self): | 26 def pause(self): |
28 pass | 27 pass |
29 | 28 |
30 def resume(self): | 29 def resume(self): |
31 pass | 30 pass |
32 | |
33 @property | |
34 def paused(self): | |
35 pass | |
36 | 31 |
37 class PDMIn(): | 32 class PDMIn(): |
33 sample_rate = 0 | |
34 | |
38 def __init__(self, clock_pin, data_pin, *, sample_rate=16000, bit_depth=8, | 35 def __init__(self, clock_pin, data_pin, *, sample_rate=16000, bit_depth=8, |
39 mono=True, oversample=64, startup_delay=0.11): | 36 mono=True, oversample=64, startup_delay=0.11): |
40 pass | 37 pass |
41 | 38 |
42 def deinit(self): | 39 def deinit(self): |
43 pass | 40 pass |
44 | 41 |
45 def record(self, destination, destination_length): | 42 def record(self, destination, destination_length): |
46 pass | 43 pass |
47 | |
48 @property | |
49 def sample_rate(self): | |
50 pass |