MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / findBusHandle

Method findBusHandle

extlibs/soloud/src/core/soloud_bus.cpp:139–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 void Bus::findBusHandle()
140 {
141 if (mChannelHandle == 0)
142 {
143 // Find the channel the bus is playing on to calculate handle..
144 int i;
145 for (i = 0; mChannelHandle == 0 && i < (signed)mSoloud->mHighestVoice; i++)
146 {
147 if (mSoloud->mVoice[i] == mInstance)
148 {
149 mChannelHandle = mSoloud->getHandleFromVoice(i);
150 }
151 }
152 }
153 }
154
155 handle Bus::play(AudioSource &aSound, float aVolume, float aPan, bool aPaused)
156 {

Callers

nothing calls this directly

Calls 1

getHandleFromVoiceMethod · 0.80

Tested by

no test coverage detected