MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Stop

Method Stop

Source/Engine/Audio/AudioSource.cpp:189–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void AudioSource::Stop()
190{
191 if (_state == States::Stopped)
192 return;
193 PROFILE_CPU();
194
195 _state = States::Stopped;
196 _isActuallyPlayingSth = false;
197 _streamingFirstChunk = 0;
198 if (SourceID)
199 AudioBackend::Source::Stop(SourceID);
200}
201
202float AudioSource::GetTime() const
203{

Callers 6

unloadMethod · 0.45
RebuildContextFunction · 0.45
Source_PauseMethod · 0.45
Source_StopMethod · 0.45

Calls 1

StopFunction · 0.50

Tested by

no test coverage detected