From b1a77a57b14f27c4d926974f9628699a23a30416 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 7 May 2015 15:16:36 -0700 Subject: [PATCH] Add AudioSource.dispose for now --- lime/audio/AudioSource.hx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lime/audio/AudioSource.hx b/lime/audio/AudioSource.hx index b0c27fdb1..b85e707ee 100644 --- a/lime/audio/AudioSource.hx +++ b/lime/audio/AudioSource.hx @@ -59,6 +59,25 @@ class AudioSource { } + public function dispose ():Void { + + switch (AudioManager.context) { + + case OPENAL (alc, al): + + if (id != 0) { + + al.deleteSource (id); + + } + + default: + + } + + } + + private function init ():Void { switch (AudioManager.context) {