hamiltron/py-simple-audio

Interactions with asyncio?

Opened this issue · 0 comments

Hello again,

I'm trying to diagnose some stability problems I'm having in my application that uses this package for audio playback along with an asyncio-based Arduino interface (https://github.com/MrYsLab/pymata-aio). Unfortunately these problems are really difficult to reproduce, so I can't say for sure that simpleaudio is contributing at all. However, I'm curious if you can tell me anything about how simpleaudio might interact with asyncio even if I'm playing back without blocking? This is on Windows 10 if that makes any difference. I see that the C-based player is doing some kind of threading, but I don't really understand the C-Python interface well enough to know if I need to be worried about my asyncio thread playing nicely with the C thread.

Sorry for the open-ended question, anything you can tell me helps.