View Single Post
  #1 (permalink)  
Old 11-15-2007, 05:34 PM
savage82 savage82 is offline
Member
 
Join Date: Nov 2007
Posts: 2
savage82 is on a distinguished road
Converting a byte[] into Sound
Hi,

This is my first post so please be kind. I am an honours student studying Software Engineering and currently working on my dissertation project.

Briefly I am transmitting sound, image and text over a network but send the image and sound as byte arrays.

I started to use the sun.audio package to play the sound BUT my code needs to work on a PDA on version 1.3 and my code is in 1.6 so compilation causes an ID mismatch and therefore an error.

Does anyone know of a way to successfully use the java sound API to successfully transfer a byte array into audio. I originally tried it using SourceDataLine etc but got a muffled/distorted noise.

I cannot save anything on the PDA so can't create a sound file and then use the file for playing the sound.

Any advice or information would be much appreciated.
Regards,
Lea
Reply With Quote
Sponsored Links