1 Reply Latest reply on Jan 10, 2011 2:02 PM by Flex harUI

    Play sound from ByteArray


      Ok, so I'm trying to record sound from a microphone, allow the user to preview the sound, then compress the sound to mp3, and upload the mp3 to the server.  I've gotten everything to work except for allowing the user to preview the sound.  The microphone records a raw byteArray, but the Sound class can only play a URL request.  I've type-casted the byteArray to a Sound class, I've compressed it to mp3 and type-casted it, but it doesn't work.  I can send it to the server, and then request the server and play it, but this isn't optimal.  Does anyone know how to play an uncompressed byteArray generated by the microphone?