| Reply | « Previous Thread | Next Thread » |
|
I noticed when I play a byte array hard coded in my java file, the sound is very loud and crisp, but when I try to play a wav, it is very soft, and hard to hear. Has anyone had this experience. Is there anything special I need to do to wav files to make them heard. I'm playing the PCM wave files.
How do all of you guys make your byte array music? I'm not at all musically inclined btw. SpaceCowboy |
| SpaceCowboy |
| View Public Profile |
| Find all posts by SpaceCowboy |
|
Hi,
Could you please help me, i am having the byte data of wav file, how to convert this again to audio wav file to play. Thanks in advance. Its quite urgent please. regards Senthil K |
| ksenthil_070881 |
| View Public Profile |
| Find all posts by ksenthil_070881 |
|
Please help me on this its quite urgent!!!!!!!!!!!!!!!1
Hi, Could you please help me, i am having the byte data of wav file, how to convert this again to audio wav file to play. Thanks in advance. Its quite urgent please. regards Senthil K |
| ksenthil_070881 |
| View Public Profile |
| Find all posts by ksenthil_070881 |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Senthil,
do you have .wav file in .jar as resource? regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Senthil,
Marking thread as urgent is not likely to get you a response faster, in fact it has the opposite effect! In any case, if you have the wav file data as a byte array use the following code: Player player = Manager.createPlayer(new ByteArrayInputStream(data), "audio/x-wav"); player.start(); where data is your byte array. Vikram MMAPI Book http://www.mmapibook.com |
| brokendove |
| View Public Profile |
| Find all posts by brokendove |
|
Hi, spacecowboy,
Just in addition to Vikram's reply: have you tried to use VolumeControl? Would it affect anyhow on your sound's behaviour? |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|