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

Multiple channels outputs #1

Open
ThomasLengeling opened this issue Dec 9, 2015 · 1 comment
Open

Multiple channels outputs #1

ThomasLengeling opened this issue Dec 9, 2015 · 1 comment

Comments

@ThomasLengeling
Copy link

Great cinder block, very useful !!.
I am using the block to manage all my sound files, however, I am finding it hard to add multiple channel outputs to the lib, could you point out to the correct direction to adding multiple outputs.

I added ci::audio::OutputDeviceNodeRef node to the Track data structure, like this:

https://gist.github.com/ThomasLengeling/dd0ec421898cf323afb2

then I added a new setChannel function to control the channel index output.

  void SoundManager::setChannel(unsigned int trackID, int channel)
    {
        if (mTracks.find(trackID) != mTracks.end()) {
            mTracks[trackID]->mChannelRouterNode-> route(0, channel);
        }
    }

Thank you very much

@bruzed
Copy link
Contributor

bruzed commented Jan 13, 2016

@ThomasLengeling just saw this, sorry! Did you get it to work?

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