We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ccf777 commit 463b5b0Copy full SHA for 463b5b0
tcod/sdl/audio.py
@@ -267,6 +267,7 @@ def __init__(self, device: AudioDevice):
267
super().__init__(daemon=True)
268
self.device = device
269
self._lock = threading.RLock()
270
+ self.start()
271
272
def run(self) -> None:
273
buffer = np.full(
@@ -286,8 +287,8 @@ def on_stream(self, stream: NDArray[Any]) -> None:
286
287
288
class BasicMixer(Mixer):
289
def __init__(self, device: AudioDevice):
- super().__init__(device)
290
self.channels: Dict[Hashable, Channel] = {}
291
+ super().__init__(device)
292
293
def get_channel(self, key: Hashable) -> Channel:
294
with self._lock:
0 commit comments