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

ChannelSplitter/Merger - can only get first 2 channels from 6 channel Bus #187

Closed
dug9 opened this issue Feb 15, 2023 · 2 comments
Closed
Labels

Comments

@dug9
Copy link
Contributor

dug9 commented Feb 15, 2023

In the Examples.hpp ex_split_merge, the .wav when played with desktop media sequentially iterates over 5 channels "Front Left" "Front Right" "Center" "Back Left" "Back Right"
When I change the example to get the 3rd and 4th channels,
context->connect(merger, splitter, 0, 3); // "Back Left" should go to left channel 0
context->connect(merger, splitter, 1, 2); // "Center" should go to right channel 1
I expect to hear "Back Left" and "Center". I hear nothing.

@meshula meshula added the bug label Feb 17, 2023
@meshula
Copy link
Member

meshula commented Feb 17, 2023

Confirmed with a mod to the example.

        ac.connect(merger, splitter, 0, 0); // front-left
        ac.connect(merger, splitter, 1, 1); // front right
        ac.connect(merger, splitter, 2, 0); // center
        ac.connect(merger, splitter, 2, 1); // center
        ac.connect(merger, splitter, 3, 1); // back left
        ac.connect(merger, splitter, 4, 0); // back right
        ac.connect(merger, splitter, 5, 1); // tone

@dug9
Copy link
Contributor Author

dug9 commented Apr 4, 2023

fixed with pull request

@dug9 dug9 closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants