MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / pause

Method pause

src/engine/AudioEngine.cpp:249–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247void Xaudio2Effect::setVolume(float volume) { if (voice) voice->SetVolume(volume); }
248void Xaudio2Effect::setPitch(float pitch) { if (voice) voice->SetFrequencyRatio(pitch); }
249void Xaudio2Effect::pause() { if (voice) voice->Stop(); }
250void Xaudio2Effect::stop() { pause(); (const_cast<Xaudio2Effect *>(this))->stopped = true; }
251void Xaudio2Effect::setPan(float pan) { if (sample) applyPan(pan, voice, sample->nchannels); }
252bool Xaudio2Effect::setEmitterTransform(donut::math::affine3 const & transform) { return false; }

Callers

nothing calls this directly

Calls 1

StopMethod · 0.80

Tested by

no test coverage detected