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

Unclear how to start and restart an audio output stream #88

Open
roxlu opened this issue Apr 7, 2019 · 4 comments
Open

Unclear how to start and restart an audio output stream #88

roxlu opened this issue Apr 7, 2019 · 4 comments

Comments

@roxlu
Copy link

roxlu commented Apr 7, 2019

I've been looking at the examples and documentation but it's unclear how to start and stop an output stream for the same jack_client_t*. I based my code on the simple_client.c. The functions jack_activate() and jack_deactivate() seem to be the right functions to use when you want to repeatedly start and stop an audio output stream.

I'm writing a simple .wav file player which works fine although starting and stopping caused the jack daemon to shutdown and restarting/replaying a .wav file failed because of this.

After some experimenting I figured out that when I call jack_port_disconnect() for the ports that I connected, before calling jack_deactivate() solves my issues.

Is this documented somewhere? What about adding a function that correctly shutsdown a jack_client_t in the simple_client.c code?

@bugbuggerlock

This comment was marked as spam.

@bugbuggerlock

This comment was marked as spam.

@bugbuggerlock

This comment was marked as spam.

@bugbuggerlock

This comment was marked as spam.

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