Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/functions/Function_Sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ audioSound.prototype.Init = function(_props)
this.pemitter = _props.emitter;
this.paused = false;
this.soundid = _props.asset_index;
this.loops = _props.loop;
this.loop = _props.loop;
this.systempaused = false;
this.priority = _props.priority;
this.bStreamed = false;
Expand Down Expand Up @@ -1184,7 +1184,7 @@ function Audio_ResumeUnstreamed( _audioSound )

_audioSound.pbuffersource.buffer = sampleData.buffer;

//if(_audioSound.loops>0)
//if(_audioSound.loop>0)
//{
// _audioSound.pbuffersource.loop = true;
//
Expand All @@ -1194,7 +1194,7 @@ function Audio_ResumeUnstreamed( _audioSound )
//else

//oddly enough, this seems to work for looped sounds also...suspicious (see original above )
if(_audioSound.loops>0)
if(_audioSound.loop>0)
_audioSound.pbuffersource.loop = true;

{
Expand Down