Fix location of clip start call.
This commit is contained in:
@@ -395,15 +395,15 @@ void AudioSource::Update()
|
|||||||
AudioBackend::Source::VelocityChanged(SourceID, _velocity);
|
AudioBackend::Source::VelocityChanged(SourceID, _velocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Math::NearEqual(GetTime(), _startTime) && _isActuallyPlayingSth && _startingToPlay)
|
|
||||||
ClipStarted();
|
|
||||||
|
|
||||||
// Reset starting to play value once time is greater than zero
|
// Reset starting to play value once time is greater than zero
|
||||||
if (_startingToPlay && GetTime() > 0.0f)
|
if (_startingToPlay && GetTime() > 0.0f)
|
||||||
{
|
{
|
||||||
_startingToPlay = false;
|
_startingToPlay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Math::NearEqual(GetTime(), _startTime) && _isActuallyPlayingSth && _startingToPlay)
|
||||||
|
ClipStarted();
|
||||||
|
|
||||||
if (!UseStreaming() && Math::NearEqual(GetTime(), 0.0f) && _isActuallyPlayingSth && !_startingToPlay)
|
if (!UseStreaming() && Math::NearEqual(GetTime(), 0.0f) && _isActuallyPlayingSth && !_startingToPlay)
|
||||||
{
|
{
|
||||||
int32 queuedBuffers;
|
int32 queuedBuffers;
|
||||||
|
|||||||
Reference in New Issue
Block a user