From a71e06af433e27d2c36429476740e6196ef71a52 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Tue, 28 Nov 2017 12:29:45 -0500 Subject: [PATCH] =?UTF-8?q?Clones=20get=20a=20reference=20to=20parent?= =?UTF-8?q?=E2=80=99s=20audioPlayer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sprites/rendered-target.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 653bc4efd..9e181b957 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -137,7 +137,11 @@ class RenderedTarget extends Target { */ this.audioPlayer = null; if (this.runtime && this.runtime.audioEngine) { - this.audioPlayer = this.runtime.audioEngine.createPlayer(); + if (this.isOriginal) { + this.audioPlayer = this.runtime.audioEngine.createPlayer(); + } else { + this.audioPlayer = this.sprite.clones[0].audioPlayer; + } } }