From 60fa2beadb6d7dc3d2cbca411192ea9b41a2c890 Mon Sep 17 00:00:00 2001 From: Toby Galal Date: Wed, 28 Sep 2022 09:39:44 +0100 Subject: [PATCH] GM-5877 Align loop property name in voice and playback props --- scripts/functions/Function_Sound.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/functions/Function_Sound.js b/scripts/functions/Function_Sound.js index e5fa7403..433f7139 100644 --- a/scripts/functions/Function_Sound.js +++ b/scripts/functions/Function_Sound.js @@ -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; @@ -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; // @@ -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; {