Skip to content

Multiple channels outputs #1

Description

@ThomasLengeling

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions