MCPcopy Create free account
hub / github.com/crownengine/crown / GetSourceVoice

Function GetSourceVoice

3rdparty/openal/al/source.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77using std::chrono::nanoseconds;
78
79ALvoice *GetSourceVoice(ALsource *source, ALCcontext *context)
80{
81 ALuint idx{source->VoiceIdx};
82 if(idx < context->mVoices.size())
83 {
84 ALuint sid{source->id};
85 ALvoice &voice = context->mVoices[idx];
86 if(voice.mSourceID.load(std::memory_order_acquire) == sid)
87 return &voice;
88 }
89 source->VoiceIdx = INVALID_VOICE_IDX;
90 return nullptr;
91}
92
93void UpdateSourceProps(const ALsource *source, ALvoice *voice, ALCcontext *context)
94{

Callers 9

GetSourceSampleOffsetFunction · 0.85
GetSourceSecOffsetFunction · 0.85
GetSourceOffsetFunction · 0.85
FreeSourceFunction · 0.85
UpdateSourcePropsFunction · 0.85
SetSourcefvFunction · 0.85
SetSourceivFunction · 0.85
GetSourceivFunction · 0.85
source.cppFile · 0.85

Calls 2

sizeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected