|
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 'audiocore' module. |
|
8 """ |
|
9 |
|
10 class Mixer(): |
|
11 def __init__(self, channel_count=2, buffer_size=1024): |
|
12 pass |
|
13 |
|
14 def deinit(self): |
|
15 pass |
|
16 |
|
17 def play(self, sample, *, voice=0, loop=False): |
|
18 pass |
|
19 |
|
20 def stop_voice(self, voice=0): |
|
21 pass |
|
22 |
|
23 @property |
|
24 def playing(self): |
|
25 pass |
|
26 |
|
27 @property |
|
28 def sample_rate(self): |
|
29 pass |
|
30 |
|
31 class RawSample(): |
|
32 def __init__(self, buffer, *, channel_count=1, sample_rate=8000): |
|
33 pass |
|
34 |
|
35 def deinit(self): |
|
36 pass |
|
37 |
|
38 @property |
|
39 def sample_rate(self): |
|
40 pass |
|
41 |
|
42 class WaveFile(): |
|
43 def __init__(self, file, buffer=None): |
|
44 pass |
|
45 |
|
46 def deinit(self): |
|
47 pass |
|
48 |
|
49 @property |
|
50 def sample_rate(self): |
|
51 pass |
|
52 |
|
53 @property |
|
54 def bits_per_sample(self): |
|
55 pass |
|
56 |
|
57 @property |
|
58 def channel_count(self): |
|
59 pass |