├── ControlButton.hx ├── README.md ├── Recorder.hx ├── WAVWriter.hx ├── compile.hxml ├── hxclasses ├── cmodule │ └── shine │ │ ├── AlchemyBlock.hx │ │ ├── AlchemyBreakpoint.hx │ │ ├── AlchemyDispatch.hx │ │ ├── AlchemyExit.hx │ │ ├── AlchemyLibInit.hx │ │ ├── AlchemyYield.hx │ │ ├── ByteArrayIO.hx │ │ ├── CAS3ValTypemap.hx │ │ ├── CAllocedValueTypemap.hx │ │ ├── CBuffer.hx │ │ ├── CBufferTypemap.hx │ │ ├── CDoubleTypemap.hx │ │ ├── CHeapAllocator.hx │ │ ├── CIntTypemap.hx │ │ ├── CLibDummySprite.hx │ │ ├── CLibInit.hx │ │ ├── CProcTypemap.hx │ │ ├── CPtrTypemap.hx │ │ ├── CRefTypemap.hx │ │ ├── CRunner.hx │ │ ├── CSizedStrUTF8Typemap.hx │ │ ├── CStrUTF8Buffer.hx │ │ ├── CStrUTF8Typemap.hx │ │ ├── CSystem.hx │ │ ├── CSystemBridge.hx │ │ ├── CSystemLocal.hx │ │ ├── CTypemap.hx │ │ ├── CVoidTypemap.hx │ │ ├── ConSprite.hx │ │ ├── Debuggee.hx │ │ ├── DynamicProxy.hx │ │ ├── FSM_BF_addEntry.hx │ │ ├── FSM_BF_newPartHolder.hx │ │ ├── FSM_DetermineByteOrder.hx │ │ ├── FSM_Read16BitsLowHigh.hx │ │ ├── FSM__UTF8_wcrtomb.hx │ │ ├── FSM___Balloc_D2A.hx │ │ ├── FSM___adddi3.hx │ │ ├── FSM___anddi3.hx │ │ ├── FSM___ashldi3.hx │ │ ├── FSM___ashrdi3.hx │ │ ├── FSM___cmpdi2.hx │ │ ├── FSM___diff_D2A.hx │ │ ├── FSM___divdi3.hx │ │ ├── FSM___error.hx │ │ ├── FSM___fflush.hx │ │ ├── FSM___find_arguments.hx │ │ ├── FSM___fixdfdi.hx │ │ ├── FSM___fixsfdi.hx │ │ ├── FSM___fixunsdfdi.hx │ │ ├── FSM___fixunssfdi.hx │ │ ├── FSM___floatdidf.hx │ │ ├── FSM___floatdisf.hx │ │ ├── FSM___floatunsdidf.hx │ │ ├── FSM___gdtoa.hx │ │ ├── FSM___grow_type_table.hx │ │ ├── FSM___iordi3.hx │ │ ├── FSM___lmulq.hx │ │ ├── FSM___lo0bits_D2A.hx │ │ ├── FSM___lshift_D2A.hx │ │ ├── FSM___lshldi3.hx │ │ ├── FSM___lshrdi3.hx │ │ ├── FSM___moddi3.hx │ │ ├── FSM___muldi3.hx │ │ ├── FSM___mult_D2A.hx │ │ ├── FSM___multadd_D2A.hx │ │ ├── FSM___negdi2.hx │ │ ├── FSM___one_cmpldi2.hx │ │ ├── FSM___pow5mult_D2A.hx │ │ ├── FSM___qdivrem.hx │ │ ├── FSM___quorem_D2A.hx │ │ ├── FSM___sclose.hx │ │ ├── FSM___sflush.hx │ │ ├── FSM___sfp.hx │ │ ├── FSM___sfvwrite.hx │ │ ├── FSM___smakebuf.hx │ │ ├── FSM___sread.hx │ │ ├── FSM___srefill.hx │ │ ├── FSM___sseek.hx │ │ ├── FSM___subdi3.hx │ │ ├── FSM___swbuf.hx │ │ ├── FSM___swrite.hx │ │ ├── FSM___swsetup.hx │ │ ├── FSM___trailz_D2A.hx │ │ ├── FSM___ucmpdi2.hx │ │ ├── FSM___udivdi3.hx │ │ ├── FSM___ultoa.hx │ │ ├── FSM___umoddi3.hx │ │ ├── FSM___vfprintf.hx │ │ ├── FSM___xordi3.hx │ │ ├── FSM__cleanup.hx │ │ ├── FSM__exit.hx │ │ ├── FSM__fini.hx │ │ ├── FSM__fseeko.hx │ │ ├── FSM__ftello.hx │ │ ├── FSM__longjmp.hx │ │ ├── FSM__setjmp.hx │ │ ├── FSM__sseek.hx │ │ ├── FSM__start.hx │ │ ├── FSM__swrite.hx │ │ ├── FSM_abort1.hx │ │ ├── FSM_atexit.hx │ │ ├── FSM_bcopy.hx │ │ ├── FSM_closeByteArray.hx │ │ ├── FSM_dorounding.hx │ │ ├── FSM_exit.hx │ │ ├── FSM_fclose.hx │ │ ├── FSM_fflush.hx │ │ ├── FSM_filter_subband.hx │ │ ├── FSM_fprintf.hx │ │ ├── FSM_fputc.hx │ │ ├── FSM_fread.hx │ │ ├── FSM_free.hx │ │ ├── FSM_fseek.hx │ │ ├── FSM_fstat.hx │ │ ├── FSM_ftell.hx │ │ ├── FSM_getenv.hx │ │ ├── FSM_ifree.hx │ │ ├── FSM_imalloc.hx │ │ ├── FSM_init.hx │ │ ├── FSM_ioctl.hx │ │ ├── FSM_main189.hx │ │ ├── FSM_malloc.hx │ │ ├── FSM_malloc_pages.hx │ │ ├── FSM_mdct_initialise.hx │ │ ├── FSM_new_choose_table.hx │ │ ├── FSM_printf.hx │ │ ├── FSM_pubrealloc.hx │ │ ├── FSM_putMyBits.hx │ │ ├── FSM_readByteArray.hx │ │ ├── FSM_seekByteArray.hx │ │ ├── FSM_sprintf.hx │ │ ├── FSM_start_compress.hx │ │ ├── FSM_subband_initialise.hx │ │ ├── FSM_update.hx │ │ ├── FSM_update_compress.hx │ │ ├── FSM_wave_get.hx │ │ ├── FSM_wave_open.hx │ │ ├── FSM_writeByteArray.hx │ │ ├── FSM_writePartMainData.hx │ │ ├── FSM_writePartSideInfo.hx │ │ ├── FSM_write_side_info.hx │ │ ├── GDBMIDebugger.hx │ │ ├── GLEByteArrayProvider.hx │ │ ├── ICAllocator.hx │ │ ├── IO.hx │ │ ├── LEByteArray.hx │ │ ├── MState.hx │ │ ├── Machine.hx │ │ ├── MemUser.hx │ │ ├── NotifyMachine.hx │ │ ├── RCValue.hx │ │ ├── StaticInitter.hx │ │ ├── TextFieldI.hx │ │ ├── TextFieldO.hx │ │ └── ValueTracker.hx └── fr │ └── kikko │ └── lab │ └── ShineMP3Encoder.hx ├── index.html ├── recorder.swf ├── shineMP3_alchemy.swf └── upload_mp3.php /ControlButton.hx: -------------------------------------------------------------------------------- 1 | import flash.display.MovieClip; 2 | import flash.display.Sprite; 3 | import flash.display.Graphics; 4 | import flash.text.TextField; 5 | import flash.text.TextFormat; 6 | import flash.events.MouseEvent; 7 | 8 | class ControlButton extends Sprite { 9 | private var g:Graphics; 10 | private var textFormat:TextFormat; 11 | private var label:TextField; 12 | 13 | public function new(name, onClick, x, y) { 14 | super(); 15 | this.x = x; 16 | this.y = y; 17 | g = graphics; 18 | buttonMode = true; 19 | 20 | alpha = 0.75; 21 | 22 | addEventListener(MouseEvent.CLICK, onClick); 23 | addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); 24 | addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); 25 | addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); 26 | addEventListener(MouseEvent.MOUSE_UP, onMouseUp); 27 | 28 | label = new TextField(); 29 | label.text = name; 30 | textFormat = new TextFormat(); 31 | textFormat.font = "Helvetica"; 32 | textFormat.color = 0xffffff; 33 | textFormat.size = 18; 34 | textFormat.align = flash.text.TextFormatAlign.CENTER; 35 | label.setTextFormat(textFormat); 36 | label.x = -24; 37 | label.y = 52; 38 | addChild(label); 39 | 40 | if (name == "save name") { 41 | drawSaveName(); 42 | return; 43 | } 44 | 45 | // Draw rounded rectangle 46 | g.lineStyle(2, 0xe5e5e5); 47 | g.beginFill(0xffffff); 48 | g.drawRoundRect(0,0,48,48,16,16); 49 | g.endFill(); 50 | g.lineStyle(0, 0); 51 | 52 | switch (name) { 53 | case "play": drawPlay(); 54 | case "stop": drawStop(); 55 | case "record": drawRecord(); 56 | case "save": drawSave(); 57 | } 58 | } 59 | 60 | private function drawPlay() { 61 | g.beginFill(0x333333); 62 | g.moveTo(14, 10); 63 | g.lineTo(39, 24); 64 | g.lineTo(14, 38); 65 | g.endFill(); 66 | } 67 | 68 | private function drawStop() { 69 | g.beginFill(0x333333); 70 | g.drawRect(13, 13, 22, 22); 71 | g.endFill(); 72 | } 73 | 74 | private function drawRecord() { 75 | g.beginFill(0x333333); 76 | g.drawCircle(24, 24, 12); 77 | g.endFill(); 78 | } 79 | 80 | private function drawSave() { 81 | // [[66,12],[108,54],[78,54],[78,102],[18,102],[18,78],[54,78],[54,54],[24,54]] 82 | g.beginFill(0x333333); 83 | g.moveTo(26, 5); 84 | g.lineTo(42, 21); 85 | g.lineTo(30, 21); 86 | g.lineTo(30, 39); 87 | g.lineTo(7, 39); 88 | g.lineTo(7, 30); 89 | g.lineTo(21, 30); 90 | g.lineTo(21, 21); 91 | g.lineTo(9, 21); 92 | g.endFill(); 93 | } 94 | 95 | private function drawSaveName() { 96 | // Draw rounded rectangle 97 | g.lineStyle(2, 0xe5e5e5); 98 | g.beginFill(0xffffff); 99 | g.drawRoundRect(8,1,40,18,16,16); 100 | g.endFill(); 101 | g.lineStyle(0, 0); 102 | 103 | label.y = 2; 104 | label.x = -22; 105 | textFormat.size = 14; 106 | textFormat.color = 0x333333; 107 | label.text = "save"; 108 | label.setTextFormat(textFormat); 109 | } 110 | 111 | private function onMouseOver(e) { 112 | alpha = 1; 113 | } 114 | 115 | private function onMouseOut(e) { 116 | alpha = .75; 117 | } 118 | 119 | private function onMouseDown(e) { 120 | alpha = .5; 121 | } 122 | 123 | private function onMouseUp(e) { 124 | alpha = .75; 125 | } 126 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flash (haxe) MP3 Recorder & Uploader 2 | 3 | This is a flash thingy that lets you make recordings in the browser from the microphone, and upload them directly to a web server as an mp3. It is coded with haxe so you do not need the Flash IDE to edit the code. 4 | 5 | ## Compiling 6 | 7 | haxe compile.hxml 8 | 9 | ## Usage 10 | 11 | * In the same directory, put `shineMP3_alchemy.swf`, `recorder.swf`, `upload_mp3.php`, and an empty directory called `recordings`. 12 | * Make sure the `recordings` directory is writable by the web server. 13 | * Embed `recorder.swf` in a page (e.g. index.html) 14 | 15 | ## License 16 | 17 | **sound-recorder-uploader** is copyright © 2013 Charles Lehner, and released under the terms of the [MIT License](http://cel.mit-license.org/). 18 | 19 | **sound-recorder-uploader** uses the [Flash/Alchemy port of the lightweight Shine MP3 Encoder](https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy), by [Cyril Diagne](http://kikko.fr/). 20 | -------------------------------------------------------------------------------- /Recorder.hx: -------------------------------------------------------------------------------- 1 | import StringTools; 2 | 3 | import flash.display.MovieClip; 4 | import flash.display.Sprite; 5 | 6 | import flash.text.TextFormat; 7 | import flash.text.TextField; 8 | import flash.text.TextFieldType; 9 | 10 | import flash.utils.ByteArray; 11 | import flash.utils.Timer; 12 | import flash.media.Microphone; 13 | import flash.media.Sound; 14 | import flash.media.SoundTransform; 15 | import flash.errors.Error; 16 | 17 | import flash.net.URLRequest; 18 | import flash.net.URLRequestMethod; 19 | import flash.net.URLLoader; 20 | 21 | import flash.events.Event; 22 | import flash.events.SampleDataEvent; 23 | import flash.events.ProgressEvent; 24 | import flash.events.ErrorEvent; 25 | import flash.events.TimerEvent; 26 | import flash.events.SecurityErrorEvent; 27 | import flash.events.IOErrorEvent; 28 | 29 | import fr.kikko.lab.ShineMP3Encoder; 30 | import WAVWriter; 31 | import ControlButton; 32 | 33 | class Recorder { 34 | private static var soundBytes:ByteArray; 35 | private static var mymic:Microphone; 36 | private static var mySound:Sound; 37 | private static var micTimer:Timer; 38 | private static var recorded:Bool; 39 | private static var mp3Encoder:ShineMP3Encoder; 40 | private static var loader:URLLoader; 41 | private static var recordingName:String; 42 | 43 | private static var recBtn:Sprite; 44 | private static var stopBtn:Sprite; 45 | private static var playBtn:Sprite; 46 | private static var saveBtn:Sprite; 47 | private static var progressBar:Sprite; 48 | private static var statusText:TextField; 49 | private static var nameText:TextField; 50 | private static var nameTextContainer:Sprite; 51 | 52 | public static function main() { 53 | // Load stuff dynamically because statically didn't work. 54 | // http://haxe.1354130.n2.nabble.com/Error-importing-swf-file-containing-Alchemy-code-td5352270.html 55 | 56 | var req = new URLRequest(getBaseURL() + "shineMP3_alchemy.swf"); 57 | var domain = flash.system.ApplicationDomain.currentDomain; 58 | var ctx = new flash.system.LoaderContext(false, domain); 59 | var loader = new flash.display.Loader(); 60 | loader.load(req, ctx); 61 | 62 | // Make buttons 63 | var mc : MovieClip = flash.Lib.current; 64 | 65 | recBtn = new ControlButton("record", startRecord, 20, 20); 66 | mc.addChild(recBtn); 67 | 68 | stopBtn = new ControlButton("stop", doStop, 90, 20); 69 | mc.addChild(stopBtn); 70 | 71 | playBtn = new ControlButton("play", doPlay, 160, 20); 72 | mc.addChild(playBtn); 73 | 74 | saveBtn = new ControlButton("save", doSave, 230, 20); 75 | mc.addChild(saveBtn); 76 | 77 | // Make progress bar 78 | var progressBarContainer = new Sprite(); 79 | var g = progressBarContainer.graphics; 80 | g.beginFill(0xffffff); //start off with black 81 | g.drawRect(0, 0, 260, 24); 82 | mc.addChild(progressBarContainer); 83 | progressBarContainer.x = 20; 84 | progressBarContainer.y = 102; 85 | 86 | progressBar = new Sprite(); 87 | g = progressBar.graphics; 88 | g.beginFill(0x999999); //start off with black 89 | g.drawRect(0, 0, 256, 20); 90 | progressBarContainer.addChild(progressBar); 91 | progressBar.x = 2; 92 | progressBar.y = 2; 93 | 94 | // Status text 95 | statusText = new TextField(); 96 | var tf = new TextFormat(); 97 | tf.font = "Helvetica"; 98 | tf.color = 0xcccccc; 99 | tf.size = 14; 100 | statusText.defaultTextFormat = tf; 101 | statusText.x = 20; 102 | statusText.y = 132; 103 | statusText.width = 260; 104 | mc.addChild(statusText); 105 | 106 | // Name text field 107 | nameText = new TextField(); 108 | nameText.type = TextFieldType.INPUT; 109 | nameText.width = 210; 110 | nameText.x = 1; 111 | nameText.y = 1; 112 | var nameTF = new TextFormat(); 113 | nameTF.font = "Helvetica"; 114 | nameTF.color = 0xbbbbbb; 115 | nameTF.size = 13; 116 | nameText.defaultTextFormat = nameTF; 117 | 118 | nameTextContainer = new Sprite(); 119 | nameTextContainer.addChild(nameText); 120 | mc.addChild(nameTextContainer); 121 | g = nameTextContainer.graphics; 122 | g.lineStyle(2, 0x666666); 123 | g.drawRect(0, 0, 210, 20); 124 | nameTextContainer.x = 20; 125 | nameTextContainer.y = 156; 126 | nameTextContainer.visible = false; 127 | 128 | var saveNameBtn = new ControlButton("save name", reallySave, 212, 0); 129 | nameTextContainer.addChild(saveNameBtn); 130 | 131 | setStatus("Ready"); 132 | 133 | soundBytes = new ByteArray(); 134 | 135 | // Get Microphone 136 | mymic = Microphone.getMicrophone(); 137 | 138 | mymic.rate = 44; 139 | mymic.setSilenceLevel(0); 140 | 141 | mymic.setUseEchoSuppression(false); 142 | mymic.soundTransform = new SoundTransform(0, 0); 143 | mymic.setLoopBack(true); 144 | 145 | micTimer = new Timer(100); 146 | micTimer.addEventListener(TimerEvent.TIMER, miclevel); 147 | micTimer.start(); 148 | 149 | recorded = false; 150 | } 151 | 152 | private static function getBaseURL() : String { 153 | var stage = flash.Lib.current.stage; 154 | var ldrURL:Array = stage.loaderInfo.url.split("/"); 155 | ldrURL.pop(); 156 | var base:String = ldrURL.join("/")+"/"; 157 | return base; 158 | } 159 | 160 | private static function setStatus(status:String) { 161 | statusText.text = status; 162 | } 163 | 164 | private static function startRecord(e:Event) { 165 | soundBytes.clear(); 166 | mymic.addEventListener(SampleDataEvent.SAMPLE_DATA, micSampleDataHandler); 167 | setStatus("Recording"); 168 | recorded = true; 169 | } 170 | private static function micSampleDataHandler(event:SampleDataEvent) { 171 | while (event.data.bytesAvailable != 0) { 172 | var sample:Float = event.data.readFloat(); 173 | soundBytes.writeFloat(sample); 174 | } 175 | } 176 | private static function playbackSampleHandler(event:SampleDataEvent) { 177 | for (i in 0...8192) { 178 | if (soundBytes.bytesAvailable == 0) break; 179 | var sample:Float = soundBytes.readFloat(); 180 | event.data.writeFloat(sample); 181 | event.data.writeFloat(sample); 182 | } 183 | } 184 | 185 | private static function doStop(e:Event) { 186 | mymic.removeEventListener(SampleDataEvent.SAMPLE_DATA, micSampleDataHandler); 187 | setStatus("Stopped recording"); 188 | } 189 | 190 | private static function doPlay(e:Event) { 191 | soundBytes.position = 0; 192 | mySound = new Sound(); 193 | mySound.addEventListener(SampleDataEvent.SAMPLE_DATA, playbackSampleHandler); 194 | mySound.play(); 195 | setStatus("Playing"); 196 | } 197 | 198 | private static function miclevel(event:TimerEvent) { 199 | progressBar.width = mymic.activityLevel * 2.56; 200 | } 201 | 202 | private static function doSave(e:Event) { 203 | if (!recorded) { 204 | setStatus("Make a recording first."); 205 | return; 206 | } 207 | 208 | setStatus("Title your song (only you will see this):"); 209 | nameTextContainer.visible = true; 210 | } 211 | 212 | private static function reallySave(e:Event) { 213 | recordingName = nameText.text; 214 | if (recordingName == "") { 215 | return; 216 | } 217 | nameTextContainer.visible = false; 218 | setStatus("Saving"); 219 | 220 | // encode to WAV 221 | var wavWriter:WAVWriter = new WAVWriter(); 222 | wavWriter.writeSamples(soundBytes); 223 | var wavData:ByteArray = wavWriter.getWAV(); 224 | 225 | // encode to MP3 226 | mp3Encoder = new ShineMP3Encoder(wavData); 227 | mp3Encoder.addEventListener(ProgressEvent.PROGRESS, mp3EncodeProgress); 228 | mp3Encoder.addEventListener(ErrorEvent.ERROR, mp3EncodeError); 229 | mp3Encoder.addEventListener(Event.COMPLETE, mp3EncodeComplete); 230 | mp3Encoder.start(); 231 | } 232 | 233 | private static function mp3EncodeProgress(event : ProgressEvent) { 234 | //trace(event.bytesLoaded, event.bytesTotal); 235 | var progress = event.bytesLoaded / event.bytesTotal * 100; 236 | setStatus("Encoding MP3... " + progress + "%"); 237 | } 238 | 239 | private static function mp3EncodeError(event : ErrorEvent) { 240 | setStatus("Error : " + event.text); 241 | } 242 | 243 | private static function mp3EncodeComplete(event : Event) { 244 | //trace("Done encoding !", mp3Encoder.mp3Data.length); 245 | mp3Encoder.wavData.clear(); 246 | uploadMP3(); 247 | } 248 | 249 | private static function uploadMP3() { 250 | setStatus("Uploading"); 251 | loader = new URLLoader(); 252 | var url = getBaseURL() + "upload_mp3.php"; 253 | var query = "name=" + StringTools.urlEncode(recordingName); 254 | var request : URLRequest = new URLRequest(url + "?" + query); 255 | 256 | // PUT requires flash 10.1. 257 | request.method = URLRequestMethod.POST; 258 | request.data = mp3Encoder.mp3Data; 259 | request.contentType = "application/octet-stream"; 260 | 261 | // Handlers 262 | loader.addEventListener(Event.COMPLETE, uploadComplete); 263 | loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, uploadError); 264 | loader.addEventListener(IOErrorEvent.IO_ERROR, uploadError); 265 | try { 266 | loader.load(request); 267 | } catch (error : Dynamic) { 268 | setStatus("Upload error. " + error); 269 | } 270 | } 271 | 272 | private static function uploadError(event:Event) { 273 | setStatus("Upload error. " + event); 274 | } 275 | 276 | private static function uploadComplete(event:Event) { 277 | trace("Upload complete."); 278 | var data = loader.data; 279 | trace(data); 280 | if (data == "") { 281 | setStatus("There was a problem. Check your login."); 282 | } else { 283 | setStatus("Your recording is published!"); 284 | } 285 | // reset 286 | mp3Encoder.mp3Data.clear(); 287 | } 288 | } 289 | 290 | -------------------------------------------------------------------------------- /WAVWriter.hx: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Bernard Visscher [bernard at debit dot nl] 3 | * ported to haxe 4 | * http://ralcr.googlecode.com/svn-history/r42/trunk/IOKit/WAVWriter.hx 5 | */ 6 | 7 | import flash.utils.Endian; 8 | import flash.utils.ByteArray; 9 | 10 | class WAVWriter { 11 | private var samples:ByteArray; 12 | 13 | public function new() { 14 | samples = new ByteArray(); 15 | samples.endian = Endian.LITTLE_ENDIAN; 16 | } 17 | 18 | /** 19 | * The samples given are of the type float, which is the type extracted from the Sound object. 20 | */ 21 | public function writeSamples(ba:ByteArray) { 22 | ba.position = 0; 23 | while (ba.bytesAvailable > 0) { 24 | var l:Int = Math.round(ba.readFloat() * 0x7FFF); // * 0x7FFF, because wav samples when 16bits have a value of -2^15 till 2^15 25 | var r:Int = Math.round(ba.readFloat() * 0x7FFF); 26 | samples.writeShort(l); 27 | samples.writeShort(r); 28 | } 29 | } 30 | 31 | public function getWAV():ByteArray { 32 | samples.position = 0; 33 | 34 | var wav:ByteArray = new ByteArray(); 35 | wav.endian = Endian.BIG_ENDIAN; 36 | wav.writeUTFBytes("RIFF"); 37 | 38 | wav.endian = Endian.LITTLE_ENDIAN; 39 | wav.writeUnsignedInt(samples.bytesAvailable + 36); 40 | 41 | wav.endian = Endian.BIG_ENDIAN; 42 | wav.writeUTFBytes("WAVE"); 43 | 44 | //subchunk 1 45 | wav.writeUTFBytes("fmt "); 46 | 47 | wav.endian = Endian.LITTLE_ENDIAN; 48 | wav.writeInt(16); //Subchunk1Size 16 for PCM. This is the size of the rest of the Subchunk which follows this number. 49 | wav.writeShort(1); // AudioFormat PCM = 1 50 | wav.writeShort(1); // NumChannels Mono = 1, Stereo = 2, etc. 51 | wav.writeUnsignedInt(44100); // SampleRate 8000, 44100, etc. 52 | wav.writeUnsignedInt(Math.round(44100 * 1 * 16/8)); //ByteRate == SampleRate * NumChannels * BitsPerSample/8 53 | wav.writeShort(Math.round(1 * 16/8)); // BlockAlign == NumChannels * BitsPerSample/8 54 | wav.writeShort(16); //Bits per sample 55 | 56 | //data chunk 57 | wav.endian = Endian.BIG_ENDIAN; 58 | wav.writeUTFBytes("data"); 59 | 60 | wav.endian = Endian.LITTLE_ENDIAN; 61 | wav.writeUnsignedInt(samples.bytesAvailable); 62 | wav.writeBytes(samples); 63 | 64 | wav.position = 0; 65 | return wav; 66 | } 67 | } -------------------------------------------------------------------------------- /compile.hxml: -------------------------------------------------------------------------------- 1 | -main Recorder 2 | -swf-version 10 3 | -swf recorder.swf 4 | 5 | # set dimensions of 700 wide x 400 tall 6 | # 40 frames per second 7 | # background color of #FFFFFF 8 | -swf-header 300:180:40:FFFFFF 9 | 10 | #-swf-lib shineMP3_alchemy.swf 11 | -cp hxclasses 12 | --no-traces -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/AlchemyBlock.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class AlchemyBlock { 4 | } 5 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/AlchemyBreakpoint.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class AlchemyBreakpoint { 4 | var bp : Dynamic; 5 | function new(p0 : Dynamic) : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/AlchemyDispatch.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class AlchemyDispatch { 4 | } 5 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/AlchemyExit.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class AlchemyExit { 4 | var rv : Int; 5 | function new(p0 : Int) : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/AlchemyLibInit.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class AlchemyLibInit { 4 | var rv : Int; 5 | function new(p0 : Int) : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/AlchemyYield.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class AlchemyYield { 4 | var ms : Int; 5 | function new(?p0 : Int) : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/ByteArrayIO.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class ByteArrayIO extends IO { 4 | var byteArray : flash.utils.ByteArray; 5 | function new() : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CAS3ValTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CAS3ValTypemap extends CTypemap { 4 | var valueTracker(default,null) : ValueTracker; 5 | function new() : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CAllocedValueTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CAllocedValueTypemap extends CTypemap { 4 | function new(p0 : ICAllocator) : Void; 5 | private function alloc(p0 : Dynamic) : Int; 6 | private function free(p0 : Int) : Void; 7 | } 8 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CBuffer.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CBuffer { 4 | var ptr(default,null) : Int; 5 | var size(default,null) : Int; 6 | var value : Dynamic; 7 | function new(p0 : Int, ?p1 : ICAllocator) : Void; 8 | function free() : Void; 9 | function reset() : Void; 10 | private function computeValue() : Dynamic; 11 | private function setValue(p0 : Dynamic) : Void; 12 | static function free(p0 : Int) : Void; 13 | } 14 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CBufferTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CBufferTypemap extends CTypemap { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CDoubleTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CDoubleTypemap extends CTypemap { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CHeapAllocator.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CHeapAllocator implements ICAllocator { 4 | function new() : Void; 5 | function alloc(p0 : Int) : Int; 6 | function free(p0 : Int) : Void; 7 | } 8 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CIntTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CIntTypemap extends CTypemap { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CLibDummySprite.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CLibDummySprite extends flash.display.Sprite { 4 | } 5 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CLibInit.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CLibInit { 4 | function new() : Void; 5 | function init() : Dynamic; 6 | function putEnv(p0 : String, p1 : String) : Void; 7 | function setSprite(p0 : flash.display.Sprite) : Void; 8 | function supplyFile(p0 : String, p1 : flash.utils.ByteArray) : Void; 9 | } 10 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CProcTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CProcTypemap extends CTypemap { 4 | function new(p0 : CTypemap, p1 : Array, ?p2 : Bool, ?p3 : Bool) : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CPtrTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CPtrTypemap extends CTypemap { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CRefTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CRefTypemap extends CTypemap { 4 | function new(p0 : CTypemap) : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CRunner.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CRunner implements Debuggee { 4 | var isRunning(default,null) : Bool; 5 | function new(?p0 : Bool) : Void; 6 | function cancelDebug() : Void; 7 | function createArgv(p0 : Array) : Array; 8 | function createEnv(p0 : Dynamic) : Array; 9 | function rawAllocIntArray(p0 : Array) : Int; 10 | function rawAllocString(p0 : String) : Int; 11 | function rawAllocStringArray(p0 : Array) : Array; 12 | function resume() : Void; 13 | function startInit() : Void; 14 | function startSystem() : Void; 15 | function startSystemBridge(p0 : String, p1 : Int) : Void; 16 | function startSystemLocal(?p0 : Bool) : Void; 17 | function suspend() : Void; 18 | function work() : Void; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CSizedStrUTF8Typemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CSizedStrUTF8Typemap extends CTypemap { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CStrUTF8Buffer.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CStrUTF8Buffer extends CBuffer { 4 | function new(p0 : Int, ?p1 : Bool, ?p2 : ICAllocator) : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CStrUTF8Typemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CStrUTF8Typemap extends CAllocedValueTypemap { 4 | function new(?p0 : ICAllocator) : Void; 5 | private function ByteArrayForString(p0 : String) : flash.utils.ByteArray; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CSystem.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern interface CSystem { 4 | function access(p0 : Int, p1 : Int) : Int; 5 | function close(p0 : Int) : Int; 6 | function exit(p0 : Int) : Void; 7 | function fsize(p0 : Int) : Int; 8 | function getargv() : Array; 9 | function getenv() : Dynamic; 10 | function ioctl(p0 : Int, p1 : Int, p2 : Int) : Int; 11 | function lseek(p0 : Int, p1 : Int, p2 : Int) : Int; 12 | function open(p0 : Int, p1 : Int, p2 : Int) : Int; 13 | function psize(p0 : Int) : Int; 14 | function read(p0 : Int, p1 : Int, p2 : Int) : Int; 15 | function setup(p0 : Dynamic) : Void; 16 | function tell(p0 : Int) : Int; 17 | function write(p0 : Int, p1 : Int, p2 : Int) : Int; 18 | } 19 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CSystemBridge.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CSystemBridge implements CSystem { 4 | function new(p0 : String, p1 : Int) : Void; 5 | function access(p0 : Int, p1 : Int) : Int; 6 | function close(p0 : Int) : Int; 7 | function exit(p0 : Int) : Void; 8 | function fsize(p0 : Int) : Int; 9 | function getargv() : Array; 10 | function getenv() : Dynamic; 11 | function ioctl(p0 : Int, p1 : Int, p2 : Int) : Int; 12 | function lseek(p0 : Int, p1 : Int, p2 : Int) : Int; 13 | function open(p0 : Int, p1 : Int, p2 : Int) : Int; 14 | function psize(p0 : Int) : Int; 15 | function read(p0 : Int, p1 : Int, p2 : Int) : Int; 16 | function setup(p0 : Dynamic) : Void; 17 | function tell(p0 : Int) : Int; 18 | function write(p0 : Int, p1 : Int, p2 : Int) : Int; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CSystemLocal.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CSystemLocal implements CSystem { 4 | function new(?p0 : Bool) : Void; 5 | function access(p0 : Int, p1 : Int) : Int; 6 | function close(p0 : Int) : Int; 7 | function exit(p0 : Int) : Void; 8 | function fsize(p0 : Int) : Int; 9 | function getargv() : Array; 10 | function getenv() : Dynamic; 11 | function ioctl(p0 : Int, p1 : Int, p2 : Int) : Int; 12 | function lseek(p0 : Int, p1 : Int, p2 : Int) : Int; 13 | function open(p0 : Int, p1 : Int, p2 : Int) : Int; 14 | function psize(p0 : Int) : Int; 15 | function read(p0 : Int, p1 : Int, p2 : Int) : Int; 16 | function setup(p0 : Dynamic) : Void; 17 | function tell(p0 : Int) : Int; 18 | function write(p0 : Int, p1 : Int, p2 : Int) : Int; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CTypemap { 4 | var ptrLevel(default,null) : Int; 5 | var typeSize(default,null) : Int; 6 | function new() : Void; 7 | function createC(p0 : Dynamic, ?p1 : Int) : Array; 8 | function destroyC(p0 : Array) : Void; 9 | function fromC(p0 : Array) : Dynamic; 10 | function fromReturnRegs(p0 : Dynamic) : Dynamic; 11 | function getValueSize(p0 : Dynamic) : Int; 12 | function readValue(p0 : Int) : Dynamic; 13 | function toReturnRegs(p0 : Dynamic, p1 : Dynamic, ?p2 : Int) : Void; 14 | function writeValue(p0 : Int, p1 : Dynamic) : Void; 15 | static var AS3ValType : CAS3ValTypemap; 16 | static var BufferType : CBufferTypemap; 17 | static var DoubleRefType : CRefTypemap; 18 | static var DoubleType : CDoubleTypemap; 19 | static var IntRefType : CRefTypemap; 20 | static var IntType : CIntTypemap; 21 | static var PtrType : CPtrTypemap; 22 | static var SizedStrType : CSizedStrUTF8Typemap; 23 | static var StrRefType : CRefTypemap; 24 | static var StrType : CStrUTF8Typemap; 25 | static var VoidType : CVoidTypemap; 26 | static function getTypeByName(p0 : String) : CTypemap; 27 | static function getTypesByNameArray(p0 : Array) : Array; 28 | static function getTypesByNames(p0 : String) : Array; 29 | } 30 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/CVoidTypemap.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class CVoidTypemap extends CTypemap { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/ConSprite.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class ConSprite extends flash.display.Sprite { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/Debuggee.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern interface Debuggee { 4 | var isRunning(default,null) : Bool; 5 | function cancelDebug() : Void; 6 | function resume() : Void; 7 | function suspend() : Void; 8 | } 9 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/DynamicProxy.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class DynamicProxy extends flash.utils.Proxy { 4 | var callProperty : Dynamic; 5 | var deleteProperty : Dynamic; 6 | var getDescendants : Dynamic; 7 | var getProperty : Dynamic; 8 | var hasProperty : Dynamic; 9 | var isAttribute : Dynamic; 10 | var nextName : Dynamic; 11 | var nextNameIndex : Dynamic; 12 | var nextValue : Dynamic; 13 | var setProperty : Dynamic; 14 | function new() : Void; 15 | } 16 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_BF_addEntry.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_BF_addEntry extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i2 : Int; 9 | var i3 : Int; 10 | var i4 : Int; 11 | var i5 : Int; 12 | var i6 : Int; 13 | var i7 : Int; 14 | var i8 : Int; 15 | var i9 : Int; 16 | function new() : Void; 17 | static var NumberRegCount : Int; 18 | static var intRegCount : Int; 19 | static function start() : Void; 20 | } 21 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_BF_newPartHolder.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_BF_newPartHolder extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | function new() : Void; 12 | static var NumberRegCount : Int; 13 | static var intRegCount : Int; 14 | static function start() : Void; 15 | } 16 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_DetermineByteOrder.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_DetermineByteOrder extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_Read16BitsLowHigh.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_Read16BitsLowHigh extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__UTF8_wcrtomb.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__UTF8_wcrtomb extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___Balloc_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___Balloc_D2A extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | function new() : Void; 11 | static var NumberRegCount : Int; 12 | static var intRegCount : Int; 13 | static function start() : Void; 14 | } 15 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___adddi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___adddi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___anddi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___anddi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___ashldi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___ashldi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___ashrdi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___ashrdi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___cmpdi2.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___cmpdi2 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___diff_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___diff_D2A extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i13 : Int; 10 | var i2 : Int; 11 | var i3 : Int; 12 | var i4 : Int; 13 | var i5 : Int; 14 | var i6 : Int; 15 | var i7 : Int; 16 | var i8 : Int; 17 | var i9 : Int; 18 | function new() : Void; 19 | static var NumberRegCount : Int; 20 | static var intRegCount : Int; 21 | static function start() : Void; 22 | } 23 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___divdi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___divdi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___error.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___error extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___fflush.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___fflush extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | function new() : Void; 11 | static var NumberRegCount : Int; 12 | static var intRegCount : Int; 13 | static function start() : Void; 14 | } 15 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___find_arguments.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___find_arguments extends Machine { 4 | var f0 : Float; 5 | var i0 : Int; 6 | var i1 : Int; 7 | var i10 : Int; 8 | var i11 : Int; 9 | var i12 : Int; 10 | var i2 : Int; 11 | var i3 : Int; 12 | var i4 : Int; 13 | var i5 : Int; 14 | var i6 : Int; 15 | var i7 : Int; 16 | var i8 : Int; 17 | var i9 : Int; 18 | function new() : Void; 19 | static var NumberRegCount : Int; 20 | static var intRegCount : Int; 21 | static function start() : Void; 22 | } 23 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___fixdfdi.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___fixdfdi extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___fixsfdi.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___fixsfdi extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___fixunsdfdi.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___fixunsdfdi extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___fixunssfdi.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___fixunssfdi extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___floatdidf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___floatdidf extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___floatdisf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___floatdisf extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___floatunsdidf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___floatunsdidf extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___gdtoa.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___gdtoa extends Machine { 4 | var f0 : Float; 5 | var f1 : Float; 6 | var f2 : Float; 7 | var f3 : Float; 8 | var i0 : Int; 9 | var i1 : Int; 10 | var i10 : Int; 11 | var i11 : Int; 12 | var i12 : Int; 13 | var i13 : Int; 14 | var i14 : Int; 15 | var i15 : Int; 16 | var i16 : Int; 17 | var i17 : Int; 18 | var i18 : Int; 19 | var i19 : Int; 20 | var i2 : Int; 21 | var i20 : Int; 22 | var i21 : Int; 23 | var i22 : Int; 24 | var i23 : Int; 25 | var i24 : Int; 26 | var i25 : Int; 27 | var i26 : Int; 28 | var i27 : Int; 29 | var i28 : Int; 30 | var i29 : Int; 31 | var i3 : Int; 32 | var i30 : Int; 33 | var i31 : Int; 34 | var i4 : Int; 35 | var i5 : Int; 36 | var i6 : Int; 37 | var i7 : Int; 38 | var i8 : Int; 39 | var i9 : Int; 40 | function new() : Void; 41 | static var NumberRegCount : Int; 42 | static var intRegCount : Int; 43 | static function start() : Void; 44 | } 45 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___grow_type_table.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___grow_type_table extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | function new() : Void; 13 | static var NumberRegCount : Int; 14 | static var intRegCount : Int; 15 | static function start() : Void; 16 | } 17 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___iordi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___iordi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___lmulq.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___lmulq extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___lo0bits_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___lo0bits_D2A extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___lshift_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___lshift_D2A extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i13 : Int; 10 | var i14 : Int; 11 | var i15 : Int; 12 | var i2 : Int; 13 | var i3 : Int; 14 | var i4 : Int; 15 | var i5 : Int; 16 | var i6 : Int; 17 | var i7 : Int; 18 | var i8 : Int; 19 | var i9 : Int; 20 | function new() : Void; 21 | static var NumberRegCount : Int; 22 | static var intRegCount : Int; 23 | static function start() : Void; 24 | } 25 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___lshldi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___lshldi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___lshrdi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___lshrdi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___moddi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___moddi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___muldi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___muldi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___mult_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___mult_D2A extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i13 : Int; 10 | var i14 : Int; 11 | var i15 : Int; 12 | var i16 : Int; 13 | var i17 : Int; 14 | var i18 : Int; 15 | var i19 : Int; 16 | var i2 : Int; 17 | var i20 : Int; 18 | var i3 : Int; 19 | var i4 : Int; 20 | var i5 : Int; 21 | var i6 : Int; 22 | var i7 : Int; 23 | var i8 : Int; 24 | var i9 : Int; 25 | function new() : Void; 26 | static var NumberRegCount : Int; 27 | static var intRegCount : Int; 28 | static function start() : Void; 29 | } 30 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___multadd_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___multadd_D2A extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i2 : Int; 9 | var i3 : Int; 10 | var i4 : Int; 11 | var i5 : Int; 12 | var i6 : Int; 13 | var i7 : Int; 14 | var i8 : Int; 15 | var i9 : Int; 16 | function new() : Void; 17 | static var NumberRegCount : Int; 18 | static var intRegCount : Int; 19 | static function start() : Void; 20 | } 21 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___negdi2.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___negdi2 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___one_cmpldi2.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___one_cmpldi2 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___pow5mult_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___pow5mult_D2A extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | function new() : Void; 11 | static var NumberRegCount : Int; 12 | static var intRegCount : Int; 13 | static function start() : Void; 14 | } 15 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___qdivrem.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___qdivrem extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___quorem_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___quorem_D2A extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___sclose.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___sclose extends Machine { 4 | var i0 : Int; 5 | function new() : Void; 6 | static var NumberRegCount : Int; 7 | static var intRegCount : Int; 8 | static function start() : Void; 9 | } 10 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___sflush.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___sflush extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | function new() : Void; 12 | static var NumberRegCount : Int; 13 | static var intRegCount : Int; 14 | static function start() : Void; 15 | } 16 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___sfp.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___sfp extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | function new() : Void; 12 | static var NumberRegCount : Int; 13 | static var intRegCount : Int; 14 | static function start() : Void; 15 | } 16 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___sfvwrite.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___sfvwrite extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i13 : Int; 10 | var i14 : Int; 11 | var i15 : Int; 12 | var i16 : Int; 13 | var i17 : Int; 14 | var i18 : Int; 15 | var i19 : Int; 16 | var i2 : Int; 17 | var i3 : Int; 18 | var i4 : Int; 19 | var i5 : Int; 20 | var i6 : Int; 21 | var i7 : Int; 22 | var i8 : Int; 23 | var i9 : Int; 24 | function new() : Void; 25 | static var NumberRegCount : Int; 26 | static var intRegCount : Int; 27 | static function start() : Void; 28 | } 29 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___smakebuf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___smakebuf extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | function new() : Void; 13 | static var NumberRegCount : Int; 14 | static var intRegCount : Int; 15 | static function start() : Void; 16 | } 17 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___sread.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___sread extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___srefill.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___srefill extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i2 : Int; 9 | var i3 : Int; 10 | var i4 : Int; 11 | var i5 : Int; 12 | var i6 : Int; 13 | var i7 : Int; 14 | var i8 : Int; 15 | var i9 : Int; 16 | function new() : Void; 17 | static var NumberRegCount : Int; 18 | static var intRegCount : Int; 19 | static function start() : Void; 20 | } 21 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___sseek.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___sseek extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___subdi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___subdi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___swbuf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___swbuf extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | var i8 : Int; 13 | function new() : Void; 14 | static var NumberRegCount : Int; 15 | static var intRegCount : Int; 16 | static function start() : Void; 17 | } 18 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___swrite.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___swrite extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___swsetup.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___swsetup extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | function new() : Void; 10 | static var NumberRegCount : Int; 11 | static var intRegCount : Int; 12 | static function start() : Void; 13 | } 14 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___trailz_D2A.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___trailz_D2A extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___ucmpdi2.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___ucmpdi2 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___udivdi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___udivdi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___ultoa.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___ultoa extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i2 : Int; 8 | var i3 : Int; 9 | var i4 : Int; 10 | var i5 : Int; 11 | var i6 : Int; 12 | var i7 : Int; 13 | var i8 : Int; 14 | var i9 : Int; 15 | function new() : Void; 16 | static var NumberRegCount : Int; 17 | static var intRegCount : Int; 18 | static function start() : Void; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___umoddi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___umoddi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___vfprintf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___vfprintf extends Machine { 4 | var f0 : Float; 5 | var f1 : Float; 6 | var f2 : Float; 7 | var f3 : Float; 8 | var f4 : Float; 9 | var i0 : Int; 10 | var i1 : Int; 11 | var i10 : Int; 12 | var i11 : Int; 13 | var i12 : Int; 14 | var i13 : Int; 15 | var i14 : Int; 16 | var i15 : Int; 17 | var i16 : Int; 18 | var i17 : Int; 19 | var i18 : Int; 20 | var i19 : Int; 21 | var i2 : Int; 22 | var i20 : Int; 23 | var i21 : Int; 24 | var i22 : Int; 25 | var i23 : Int; 26 | var i24 : Int; 27 | var i25 : Int; 28 | var i26 : Int; 29 | var i27 : Int; 30 | var i28 : Int; 31 | var i29 : Int; 32 | var i3 : Int; 33 | var i30 : Int; 34 | var i31 : Int; 35 | var i4 : Int; 36 | var i5 : Int; 37 | var i6 : Int; 38 | var i7 : Int; 39 | var i8 : Int; 40 | var i9 : Int; 41 | function new() : Void; 42 | static var NumberRegCount : Int; 43 | static var intRegCount : Int; 44 | static function start() : Void; 45 | } 46 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM___xordi3.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM___xordi3 extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__cleanup.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__cleanup extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | function new() : Void; 11 | static var NumberRegCount : Int; 12 | static var intRegCount : Int; 13 | static function start() : Void; 14 | } 15 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__exit.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__exit extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__fini.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__fini extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__fseeko.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__fseeko extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i13 : Int; 10 | var i14 : Int; 11 | var i15 : Int; 12 | var i16 : Int; 13 | var i2 : Int; 14 | var i3 : Int; 15 | var i4 : Int; 16 | var i5 : Int; 17 | var i6 : Int; 18 | var i7 : Int; 19 | var i8 : Int; 20 | var i9 : Int; 21 | function new() : Void; 22 | static var NumberRegCount : Int; 23 | static var intRegCount : Int; 24 | static function start() : Void; 25 | } 26 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__ftello.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__ftello extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | var i8 : Int; 13 | function new() : Void; 14 | static var NumberRegCount : Int; 15 | static var intRegCount : Int; 16 | static function start() : Void; 17 | } 18 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__longjmp.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__longjmp extends Machine { 4 | function new() : Void; 5 | static function start() : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__setjmp.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__setjmp extends Machine { 4 | function new() : Void; 5 | static function start() : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__sseek.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__sseek extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | function new() : Void; 13 | static var NumberRegCount : Int; 14 | static var intRegCount : Int; 15 | static function start() : Void; 16 | } 17 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__start.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__start extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM__swrite.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM__swrite extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i2 : Int; 8 | var i3 : Int; 9 | var i4 : Int; 10 | var i5 : Int; 11 | var i6 : Int; 12 | var i7 : Int; 13 | var i8 : Int; 14 | var i9 : Int; 15 | function new() : Void; 16 | static var NumberRegCount : Int; 17 | static var intRegCount : Int; 18 | static function start() : Void; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_abort1.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_abort1 extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i2 : Int; 9 | var i3 : Int; 10 | var i4 : Int; 11 | var i5 : Int; 12 | var i6 : Int; 13 | var i7 : Int; 14 | var i8 : Int; 15 | var i9 : Int; 16 | function new() : Void; 17 | static var NumberRegCount : Int; 18 | static var intRegCount : Int; 19 | static function start() : Void; 20 | } 21 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_atexit.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_atexit extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | function new() : Void; 10 | static var NumberRegCount : Int; 11 | static var intRegCount : Int; 12 | static function start() : Void; 13 | } 14 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_bcopy.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_bcopy extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_closeByteArray.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_closeByteArray extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_dorounding.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_dorounding extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_exit.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_exit extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | function new() : Void; 7 | static var NumberRegCount : Int; 8 | static var intRegCount : Int; 9 | static function start() : Void; 10 | } 11 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fclose.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fclose extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | function new() : Void; 10 | static var NumberRegCount : Int; 11 | static var intRegCount : Int; 12 | static function start() : Void; 13 | } 14 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fflush.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fflush extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | function new() : Void; 11 | static var NumberRegCount : Int; 12 | static var intRegCount : Int; 13 | static function start() : Void; 14 | } 15 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_filter_subband.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_filter_subband extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fprintf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fprintf extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fputc.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fputc extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fread.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fread extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i2 : Int; 8 | var i3 : Int; 9 | var i4 : Int; 10 | var i5 : Int; 11 | var i6 : Int; 12 | var i7 : Int; 13 | var i8 : Int; 14 | var i9 : Int; 15 | function new() : Void; 16 | static var NumberRegCount : Int; 17 | static var intRegCount : Int; 18 | static function start() : Void; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_free.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_free extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | function new() : Void; 7 | static var NumberRegCount : Int; 8 | static var intRegCount : Int; 9 | static function start() : Void; 10 | } 11 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fseek.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fseek extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | function new() : Void; 12 | static var NumberRegCount : Int; 13 | static var intRegCount : Int; 14 | static function start() : Void; 15 | } 16 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_fstat.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_fstat extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | function new() : Void; 10 | static var NumberRegCount : Int; 11 | static var intRegCount : Int; 12 | static function start() : Void; 13 | } 14 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_ftell.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_ftell extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_getenv.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_getenv extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_ifree.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_ifree extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_imalloc.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_imalloc extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_init.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_init extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | function new() : Void; 13 | static var NumberRegCount : Int; 14 | static var intRegCount : Int; 15 | static function start() : Void; 16 | } 17 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_ioctl.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_ioctl extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_main189.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_main189 extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_malloc.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_malloc extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | function new() : Void; 7 | static var NumberRegCount : Int; 8 | static var intRegCount : Int; 9 | static function start() : Void; 10 | } 11 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_malloc_pages.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_malloc_pages extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_mdct_initialise.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_mdct_initialise extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_new_choose_table.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_new_choose_table extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_printf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_printf extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_pubrealloc.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_pubrealloc extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i2 : Int; 10 | var i3 : Int; 11 | var i4 : Int; 12 | var i5 : Int; 13 | var i6 : Int; 14 | var i7 : Int; 15 | var i8 : Int; 16 | var i9 : Int; 17 | function new() : Void; 18 | static var NumberRegCount : Int; 19 | static var intRegCount : Int; 20 | static function start() : Void; 21 | } 22 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_putMyBits.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_putMyBits extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i11 : Int; 8 | var i12 : Int; 9 | var i2 : Int; 10 | var i3 : Int; 11 | var i4 : Int; 12 | var i5 : Int; 13 | var i6 : Int; 14 | var i7 : Int; 15 | var i8 : Int; 16 | var i9 : Int; 17 | function new() : Void; 18 | static var NumberRegCount : Int; 19 | static var intRegCount : Int; 20 | static function start() : Void; 21 | } 22 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_readByteArray.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_readByteArray extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_seekByteArray.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_seekByteArray extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_sprintf.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_sprintf extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | function new() : Void; 9 | static var NumberRegCount : Int; 10 | static var intRegCount : Int; 11 | static function start() : Void; 12 | } 13 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_start_compress.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_start_compress extends Machine { 4 | var f0 : Float; 5 | var f1 : Float; 6 | var f2 : Float; 7 | var f3 : Float; 8 | var i0 : Int; 9 | var i1 : Int; 10 | var i2 : Int; 11 | var i3 : Int; 12 | var i4 : Int; 13 | var i5 : Int; 14 | function new() : Void; 15 | static var NumberRegCount : Int; 16 | static var intRegCount : Int; 17 | static function start() : Void; 18 | } 19 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_subband_initialise.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_subband_initialise extends Machine { 4 | static function start() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_update.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_update extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | function new() : Void; 7 | static var NumberRegCount : Int; 8 | static var intRegCount : Int; 9 | static function start() : Void; 10 | } 11 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_update_compress.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_update_compress extends Machine { 4 | var f0 : Float; 5 | var f1 : Float; 6 | var f2 : Float; 7 | var f3 : Float; 8 | var f4 : Float; 9 | var f5 : Float; 10 | var f6 : Float; 11 | var i0 : Int; 12 | var i1 : Int; 13 | var i10 : Int; 14 | var i11 : Int; 15 | var i12 : Int; 16 | var i13 : Int; 17 | var i14 : Int; 18 | var i15 : Int; 19 | var i16 : Int; 20 | var i17 : Int; 21 | var i18 : Int; 22 | var i19 : Int; 23 | var i2 : Int; 24 | var i20 : Int; 25 | var i21 : Int; 26 | var i22 : Int; 27 | var i23 : Int; 28 | var i24 : Int; 29 | var i25 : Int; 30 | var i26 : Int; 31 | var i27 : Int; 32 | var i28 : Int; 33 | var i29 : Int; 34 | var i3 : Int; 35 | var i30 : Int; 36 | var i31 : Int; 37 | var i4 : Int; 38 | var i5 : Int; 39 | var i6 : Int; 40 | var i7 : Int; 41 | var i8 : Int; 42 | var i9 : Int; 43 | function new() : Void; 44 | static var NumberRegCount : Int; 45 | static var intRegCount : Int; 46 | static function start() : Void; 47 | } 48 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_wave_get.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_wave_get extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | function new() : Void; 13 | static var NumberRegCount : Int; 14 | static var intRegCount : Int; 15 | static function start() : Void; 16 | } 17 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_wave_open.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_wave_open extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i10 : Int; 7 | var i2 : Int; 8 | var i3 : Int; 9 | var i4 : Int; 10 | var i5 : Int; 11 | var i6 : Int; 12 | var i7 : Int; 13 | var i8 : Int; 14 | var i9 : Int; 15 | function new() : Void; 16 | static var NumberRegCount : Int; 17 | static var intRegCount : Int; 18 | static function start() : Void; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_writeByteArray.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_writeByteArray extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | function new() : Void; 8 | static var NumberRegCount : Int; 9 | static var intRegCount : Int; 10 | static function start() : Void; 11 | } 12 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_writePartMainData.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_writePartMainData extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | var i8 : Int; 13 | var i9 : Int; 14 | function new() : Void; 15 | static var NumberRegCount : Int; 16 | static var intRegCount : Int; 17 | static function start() : Void; 18 | } 19 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_writePartSideInfo.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_writePartSideInfo extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | function new() : Void; 12 | static var NumberRegCount : Int; 13 | static var intRegCount : Int; 14 | static function start() : Void; 15 | } 16 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/FSM_write_side_info.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class FSM_write_side_info extends Machine { 4 | var i0 : Int; 5 | var i1 : Int; 6 | var i2 : Int; 7 | var i3 : Int; 8 | var i4 : Int; 9 | var i5 : Int; 10 | var i6 : Int; 11 | var i7 : Int; 12 | var i8 : Int; 13 | function new() : Void; 14 | static var NumberRegCount : Int; 15 | static var intRegCount : Int; 16 | static function start() : Void; 17 | } 18 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/GDBMIDebugger.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class GDBMIDebugger { 4 | function new() : Void; 5 | function GDBMIDEbugger(p0 : Debuggee) : Dynamic; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/GLEByteArrayProvider.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class GLEByteArrayProvider { 4 | static function get() : flash.utils.ByteArray; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/ICAllocator.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern interface ICAllocator { 4 | function alloc(p0 : Int) : Int; 5 | function free(p0 : Int) : Void; 6 | } 7 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/IO.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class IO { 4 | var position : Int; 5 | var size : Int; 6 | function new() : Void; 7 | function close() : Int; 8 | function read(p0 : Int, p1 : Int) : Int; 9 | function write(p0 : Int, p1 : Int) : Int; 10 | } 11 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/LEByteArray.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class LEByteArray extends flash.utils.ByteArray { 4 | function new() : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/MState.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class MState extends MemUser { 4 | var cf : UInt; 5 | var ds : flash.utils.ByteArray; 6 | var eax : Int; 7 | var ebp : Int; 8 | var edx : Int; 9 | var esp : Int; 10 | var funcs : flash.Vector; 11 | var gworker : Machine; 12 | var st0 : Float; 13 | var syms : Dynamic; 14 | var system : CSystem; 15 | function new(p0 : Machine) : Void; 16 | function copyTo(p0 : MState) : Void; 17 | function pop() : Int; 18 | function push(p0 : Int) : Void; 19 | } 20 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/Machine.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class Machine extends MemUser { 4 | var caller : Machine; 5 | var dbgDepth(default,null) : Int; 6 | var dbgFileId : Int; 7 | var dbgFileName(default,null) : String; 8 | var dbgFuncId(default,null) : Int; 9 | var dbgFuncName(default,null) : String; 10 | var dbgLabel : Int; 11 | var dbgLineNo : Int; 12 | var dbgLoc(default,null) : Dynamic; 13 | var dbgTrace(default,null) : String; 14 | var mstate : MState; 15 | var state : Int; 16 | function new() : Void; 17 | function backtrace() : Void; 18 | function debugBreak(p0 : Dynamic) : Void; 19 | function debugLabel(p0 : Int) : Void; 20 | function debugLoc(p0 : Int, p1 : Int) : Void; 21 | function debugTraceMem(p0 : Int, p1 : Int) : Void; 22 | function debugTraverseCurrentScope(p0 : Dynamic) : Void; 23 | function getSecsSetMS() : UInt; 24 | function stringFromPtr(p0 : Int) : String; 25 | function stringToPtr(p0 : Int, p1 : Int, p2 : String) : Int; 26 | function work() : Void; 27 | static var dbgBreakpoints : Dynamic; 28 | static var dbgFileNames : Array; 29 | static var dbgFrameBreakHigh : Int; 30 | static var dbgFrameBreakLow : Int; 31 | static var dbgFuncNames : Array; 32 | static var dbgFuncs : Array; 33 | static var dbgGlobals : Array; 34 | static var dbgLabels : Array; 35 | static var dbgLocs : Array; 36 | static var dbgScopes : Array; 37 | static var sMS : UInt; 38 | static function debugTraverseScope(p0 : Dynamic, p1 : Int, p2 : Dynamic) : Void; 39 | } 40 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/MemUser.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class MemUser { 4 | function new() : Void; 5 | function _mr32(p0 : Int) : Int; 6 | function _mrd(p0 : Int) : Float; 7 | function _mrf(p0 : Int) : Float; 8 | function _mrs16(p0 : Int) : Int; 9 | function _mrs8(p0 : Int) : Int; 10 | function _mru16(p0 : Int) : Int; 11 | function _mru8(p0 : Int) : Int; 12 | function _mw16(p0 : Int, p1 : Int) : Void; 13 | function _mw32(p0 : Int, p1 : Int) : Void; 14 | function _mw8(p0 : Int, p1 : Int) : Void; 15 | function _mwd(p0 : Int, p1 : Float) : Void; 16 | function _mwf(p0 : Int, p1 : Float) : Void; 17 | } 18 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/NotifyMachine.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class NotifyMachine extends Machine { 4 | function new(p0 : Dynamic) : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/RCValue.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class RCValue { 4 | var id : Int; 5 | var rc : Int; 6 | var value : Dynamic; 7 | function new(p0 : Dynamic, p1 : Int) : Void; 8 | } 9 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/StaticInitter.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class StaticInitter { 4 | var ascii(null,default) : Void; 5 | var asciz(null,default) : Void; 6 | var i16(null,default) : Void; 7 | var i32(null,default) : Void; 8 | var i8(null,default) : Void; 9 | var zero(null,default) : Void; 10 | function new() : Void; 11 | function alloc(p0 : Int, p1 : Int) : Int; 12 | function start(p0 : Int) : Void; 13 | } 14 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/TextFieldI.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class TextFieldI extends IO { 4 | function new(p0 : flash.text.TextField) : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/TextFieldO.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class TextFieldO extends IO { 4 | function new(p0 : flash.text.TextField, ?p1 : Bool) : Void; 5 | } 6 | -------------------------------------------------------------------------------- /hxclasses/cmodule/shine/ValueTracker.hx: -------------------------------------------------------------------------------- 1 | package cmodule.shine; 2 | 3 | extern class ValueTracker { 4 | function new() : Void; 5 | function acquire(p0 : Dynamic) : Int; 6 | function acquireId(p0 : Int) : Int; 7 | function get(p0 : Int) : Dynamic; 8 | function release(p0 : Int) : Dynamic; 9 | } 10 | -------------------------------------------------------------------------------- /hxclasses/fr/kikko/lab/ShineMP3Encoder.hx: -------------------------------------------------------------------------------- 1 | package fr.kikko.lab; 2 | 3 | import flash.events.ProgressEvent; 4 | import cmodule.shine.CLibInit; 5 | 6 | import flash.events.ErrorEvent; 7 | import flash.events.Event; 8 | import flash.events.EventDispatcher; 9 | import flash.events.TimerEvent; 10 | import flash.net.FileReference; 11 | import flash.utils.ByteArray; 12 | import flash.utils.Timer; 13 | 14 | /** 15 | * @author kikko.fr - 2010 16 | */ 17 | class ShineMP3Encoder extends EventDispatcher { 18 | 19 | public var wavData:ByteArray; 20 | public var mp3Data:ByteArray; 21 | 22 | private var cshine:Dynamic; 23 | private var timer:Timer; 24 | private var initTime:Int; 25 | 26 | public function new(wavData:ByteArray) { 27 | super(); 28 | this.wavData = wavData; 29 | } 30 | 31 | public function start() { 32 | 33 | initTime = flash.Lib.getTimer(); 34 | 35 | mp3Data = new ByteArray(); 36 | 37 | timer = new Timer(1000/30); 38 | timer.addEventListener(TimerEvent.TIMER, update); 39 | 40 | cshine = new CLibInit().init(); 41 | cshine.init(this, wavData, mp3Data); 42 | 43 | if(timer != null) timer.start(); 44 | } 45 | 46 | public function shineError(message:String) { 47 | 48 | timer.stop(); 49 | timer.removeEventListener(TimerEvent.TIMER, update); 50 | timer = null; 51 | 52 | dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, message)); 53 | } 54 | 55 | public function saveAs(filename:String=".mp3") { 56 | 57 | new FileReference().save(mp3Data, filename); 58 | } 59 | 60 | private function update(event : TimerEvent) { 61 | 62 | var percent:Int = cshine.update(); 63 | dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, percent, 100)); 64 | 65 | trace("encoding mp3...", percent+"%"); 66 | 67 | if(percent==100) { 68 | 69 | trace("Done in", (flash.Lib.getTimer()-initTime) * 0.001 + "s"); 70 | 71 | timer.stop(); 72 | timer.removeEventListener(TimerEvent.TIMER, update); 73 | timer = null; 74 | 75 | dispatchEvent(new Event(Event.COMPLETE)); 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Recorder demo 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /recorder.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit3/sound-recorder-uploader/0ab6fbf69e2cf8c86c2af6d87eac5642e552a8e5/recorder.swf -------------------------------------------------------------------------------- /shineMP3_alchemy.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit3/sound-recorder-uploader/0ab6fbf69e2cf8c86c2af6d87eac5642e552a8e5/shineMP3_alchemy.swf -------------------------------------------------------------------------------- /upload_mp3.php: -------------------------------------------------------------------------------- 1 |