Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements PW,
it works by having a main loop and use uni-directional channels to pass control messages to the main loop.
There are some open questions, and I use jack as foundation. For example there is not really any equivalent for devices, maybe it can be set that a device is the node the newly created node connects to.
Or its just like Jack, that there is a default device, and the user can create devices. But each individual stream should be a node.
As I can't test with ALSA, when a stream is dropped it gets released and its a permanent operation in contrary to play and pause which are temporary. Theoretically play and pause could also be mapped to connect, disconnect, but idk if this is correct.
Fixes #554