launchpadinteractive / popforge

Automatically exported from code.google.com/p/popforge
0 stars 0 forks source link

Decoding wav ByteArray in memory - successful but sound crackles and falters during load areas #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Capture Microphone data in ByteArray and convert to Wav ByteArray 
2. Pass ByteArray to WavDecoder.decode()
3. Plays but has quality issues mentioned in summary

What is the expected output? What do you see instead?
I have tested loading in a wav from the URLLoader and this works fine but going 
from Microphone to ByteArray to native Sound object causes quality issue. 
I noticed that the ByteArray from URLLoader.data was bigEndian and the 
ByteArray from the Microphone is littleEndian. Not sure if this is relevant.

Any suggestions very welcome.

Many thanks,
Gareth

Original issue reported on code.google.com by gareth.f...@gmail.com on 20 Sep 2011 at 3:41