Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start record and playback at the same time. #88

Open
linhz0hz opened this issue Jul 17, 2020 · 1 comment
Open

How to start record and playback at the same time. #88

linhz0hz opened this issue Jul 17, 2020 · 1 comment

Comments

@linhz0hz
Copy link

For my particular application, I want to write audio out and record the response from the environment at the same time, and analyze the response. So I need to have the timing of the output and input be well aligned. It seems that the non-blocking mode works better for what I want to do. Also this lead me to wonder when is does the read buffer starts to be filled? Is that when you open the device or is it the first call to read, particularly in non-blocking mode?

@ossilator
Copy link
Collaborator

alsa has api for stream synchronization (linking), which could be exposed in python as well. note, however, that the particular driver may not support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants