Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2007, 04:34 PM
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-22-2007, 12:57 AM
Member
 
Join Date: Nov 2007
Posts: 2
savage82 is on a distinguished road
Still need help on Sound
Hi Again,

I thought JMF might be able to help and was hoping it would offer a suitable alternative but does not have the handy J2ME style of:

Player p = Manager.createPlayer(inputstream, "WAV") (Not perfect code I know)

Does anyone know how you would do this in JMF?

Regards,
Lea
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Byte Values javaplus New To Java 1 06-23-2008 01:08 AM
using Byte arrays mew New To Java 2 01-30-2008 04:54 AM
BufferedImage to Byte Java Tip Java Tips 0 01-22-2008 09:17 PM
int to byte ravian New To Java 1 01-13-2008 08:22 PM
Byte Streams JavaForums Java Blogs 0 12-26-2007 03:01 PM


All times are GMT +3. The time now is 01:35 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org