maxl0rd / standingwave3

Flash ActionScript3 dynamic audio library
http://www.noteflight.com
160 stars 25 forks source link

WaveFile.createSample(recorder.output); #21

Open PeterTucker opened 12 years ago

PeterTucker commented 12 years ago

Hey Maxlord, I was wondering if you guys ever implemented raw mic data to be put into createSample()

WaveFile.createSample(recorder.output);

I see a similar person had an issue here https://github.com/maxl0rd/standingwave3/issues/8

Thank you for your time and the great lib.

-Peter

maxl0rd commented 12 years ago

Hi Peter

Sorry no, I don't know of anyone who has implemented this for SW3. Most of the work on this lib was done before the microphone apis were finalized.

PeterTucker commented 12 years ago

Aww that's a shame. This is a great library. I think the whole Flash community would be in debt if you added this feature. Any possibility of this in the future.

And I would personally buy you a beer.(Pizza if you don't drink. hah)

Thanks for your time, Peter

brunopava commented 10 years ago

So, how do i solve this?

private function RecordComplete(e:Event):void { var waveEncoder:WaveEncoder = new WaveEncoder(); _byteArray = WaveFile.createSample(waveEncoder.encode(recorder.output)); }

All I get is: Error #2030: End of file was encountered.

Am I doing something wrong?

ps: WaveEncoder is a class from Mic Recorder library. https://code.google.com/p/micrecorder/