MCPcopy Create free account
hub / github.com/cinder/Cinder / setupMerge4

Method setupMerge4

test/_audio/AudioTests/src/NodeBasicTest.cpp:166–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void NodeBasicTest::setupMerge4()
167{
168 auto ctx = audio::master();
169 ctx->disconnectAllNodes();
170
171 auto router = ctx->makeNode( new audio::ChannelRouterNode( audio::Node::Format().channels( 4 ) ) );
172
173 auto upmixStereo1 = ctx->makeNode( new audio::Node( audio::Node::Format().channels( 2 ) ) );
174 auto upmixStereo2 = ctx->makeNode( new audio::Node( audio::Node::Format().channels( 2 ) ) );
175
176 mGen >> upmixStereo1 >> router->route( 0, 0 );
177 mNoise >> upmixStereo2 >> router->route( 0, 2 );
178
179 router >> mGain >> mMonitor >> ctx->getOutput();
180
181 mGen->enable();
182 mNoise->enable();
183}
184
185void NodeBasicTest::setupSplitStereo()
186{

Callers

nothing calls this directly

Calls 7

masterFunction · 0.85
disconnectAllNodesMethod · 0.80
makeNodeMethod · 0.80
routeMethod · 0.80
getOutputMethod · 0.80
FormatClass · 0.50
enableMethod · 0.45

Tested by

no test coverage detected