How to extract sound object to a mono byte array in AS3
问题 I'm trying to prepend the byte array of a sound object to a captured microphone sound byte array. It works, but the extracted sound object get pichted down and doubled in length. I guess this is because the byte array of the sound object is in stereo, while the mic byte array is in mono. I have this: sound.extract(myByteArray, extract); myByteArray now contains the stereo data. How can I turn this to mono (I'm new to ByteArrays). UPDATE: Here's a working solution: existingByte.position = 0;