/* hxsynth Copyright (C) 2008 Alex McLean This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ class JsClient { static var cnx = null; static function main() { var ctx = new haxe.remoting.Context(); ctx.addObject("JsClient",JsClient); cnx = haxe.remoting.ExternalConnection.flashConnect("default","Synth",ctx); } static function play(dur) { cnx.Synth.play.call([dur]); } static function setDelaySz(sz) { cnx.Synth.setDelaySz.call([sz / 1024]); } static function setSwitcheroo(i) { cnx.Synth.setSwitcheroo.call([i / 1024]); } static function setSustain(i) { cnx.Synth.setSustain.call([i / 1024]); } }