mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Update sfxSound.cpp
This commit is contained in:
parent
cfb88b27e7
commit
0380b95492
1 changed files with 3 additions and 2 deletions
|
|
@ -693,8 +693,9 @@ DefineEngineMethod( SFXSound, setPosition, void, ( F32 position ),,
|
||||||
"playback will resume at the given position when play() is called.\n\n"
|
"playback will resume at the given position when play() is called.\n\n"
|
||||||
"@param position The new position of the play cursor (in seconds).\n" )
|
"@param position The new position of the play cursor (in seconds).\n" )
|
||||||
{
|
{
|
||||||
if( position >= 0 && position <= object->getDuration() )
|
position *= 1000.0f;
|
||||||
object->setPosition( position * 1000.0f );
|
if( position >= 0 && position < object->getDuration() )
|
||||||
|
object->setPosition( position );
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue