sound « Media File « Java I/O Q&A





1. How do I play a sound file in j2me on Samsung mobile phones?    stackoverflow.com

File formats I would like to play include wav, mp3, midi. I have tried using the Wireless Toolkit classes with no success. I have also tried using the AudioClip class that is part ...

2. Is there an open source library to handle Polar heart rate monitor sound files?    stackoverflow.com

Some of the Polar heart rate monitors can emit training session information using sound. The devices emit a sound like the modems used to do. Are there any Java based libraries ...

3. Data Formats and File Formats Java Sound    stackoverflow.com

I'm going through the Java Trail on their Sound api and they described two types of formatted audio data (data format and file format). From my understanding of it data format ...

4. How do I get a sound file's total time in Java?    stackoverflow.com

How do I get a sound file's total time in Java? --UPDATE Looks like this code does de work: long audioFileLength = audioFile.length();

    recordedTimeInSec = audioFileLength / (frameSize * frameRate);
I know ...

5. Change the volume of an audio file and save the file using java.sound.sampled    stackoverflow.com

I want to change the volume of an audio file and save the new file using java.sound.sampled. I tried to use the mixer to create a source line from the file given ...

6. Sound format for a Java-based game    stackoverflow.com

I'm developing a Java game and want to bundle and play a number of sampled sound effects. I'm planning to use the standard javax.sound.sampled functionality to play them. What format is best ...

7. How to encrypt and decrypt sound files in Java?    stackoverflow.com

Is there a way to encrypt and decrypt sound files such as *.wav , *.au or *.snd files in Java ? Edit : I knew how to encrypt and decrypt text files, just ...

8. Playing a sound file on website media player    stackoverflow.com

Hey all, i'm new to web development so i'm really dumb when it comes to tools for working on it. I have .amr files recorded from my BB application that are ...

9. how can you delete a sound file in java?    stackoverflow.com

I have a sound file that's recorded in my Java code and I need some code to delete it.





10. Playing Audio File in java Application    stackoverflow.com

Can you please suggest that how can i write a piece that plays a song.? I tried the following snippet but i get the this exception:enter image description here

import sun.audio.*;
import ...

11. j2me problem with playing multiple sound files    stackoverflow.com

I have a problem with playing more than 2 sound files in a game I'm developing now in j2me MIDP2 in eclipse. Please advice me the best way for playing multiple "wav" ...

12. Play sound file into skype call    stackoverflow.com

I am trying to play wav sound file into skype call. I am using javax.sound and first of all i listed all mixers in my system:

0,Primary Sound Driver
1,Speakers (High Definition Audio ...

13. forwarding and rewinding audio in xuggler    stackoverflow.com

I have used xuggler to play audio files other than wav,au,aiff. Since xuggler performs audio decoding at low level it is very hard to write a method that both forwards and ...

14. Jump to position in audio file using Java Sound API    stackoverflow.com

I'm using a AudioInputStream to feed bytes to a SourceDataLine to play a PCM file. I want to give the user the ability to move a slider ...

15. What content type should i use with .cfa sound file to play with j2me?    stackoverflow.com

I m using the following code for play a sound file in j2me

           try
       ...

16. obtaining an AudioInputStream upto some x bytes from the original (Cutting an Audio File)    stackoverflow.com

How can i read an AudioInputStream upto a particular number of bytes/microsecond position ? For example :

AudioInputStream ais = AudioSystem.getAudioInputStream( new File("file.wav") );
// let the file.wav be of y bytes
Now i want ...





17. Why audio files sound different?    stackoverflow.com

I recorded some audio files that must be played from java. I did it about half-year ago. Now, when I add files, they sound as if being sped-up with higher pitch. ...

18. Java: OutOfMemoryError when trying to open a 174KB sound file with clip.open()    stackoverflow.com

I'm simply trying to play a sound clip using the javax.sound.sampled library, using the most basic example I found in the documentation. I've seen a few dozen examples coded exactly this ...

19. How to get Beep Sound during error??    coderanch.com

20. java.sound ?    coderanch.com

What do you mean by discontinuous? Is the sound broken? Say if you have transmitted A, B and C. you receive A and C only? Or is it that the data is echoed? I worked on Java sound previously. I didnt face the discontinuity problem, however the voice was echoing. Send me details of what is happenning.

21. java sound I/O    coderanch.com

I am trying Java Sound API to record some sound from microphone. I have found some souce code from http://www.jsresources.org/examples/audio_playing_recording.html . But It doesn't work well. It can pass compiler, but the output wav file can not be played in windows media player. Anyone has done this before? . Thanks -------------------------- import java.io.IOException; import java.io.File; import javax.sound.sampled.DataLine; import javax.sound.sampled.TargetDataLine; import javax.sound.sampled.AudioFormat; ...

22. Generate sound    coderanch.com

23. Problem playing sound from application    coderanch.com

24. java sound - can't hear files    coderanch.com

25. Sound Files without Japplet    coderanch.com

26. Sound Files    coderanch.com

27. importing sound files    coderanch.com

28. How do I loop the sound file in this program>    coderanch.com

Thanks for the help in my previous post, guys... ive got it working! Good! But now, how do i loop the sound file a few times? Can I specify the number of times? Thanks! Klaas // The "G" class. import sun.audio.*; //import the sun.audio package import java.io.*; public class G { public static void main (String [] args) throws IOException { ...

30. How to play sound files from remote client in browser    coderanch.com

Hi all, Iam having this requirement, i have a sound file (.wav or .mp3) in my local machine which is referred in server-side java code to play the sound using awt TOOLKIT, it works fine when running in my own local browser, but when accessed from another m/c through web browser (internet) it wont work since sound file is in my ...

31. Java sound: how to play a file?    coderanch.com

How do I play a file? I converted an mp3 file to wav so I could use it with Java. I looked at some Java sound tutorials and they seemed way too hard. The ones that I found were good/easy were for applets... Could anyone give me a working example? Thanks, cc11rocks aka John Price

33. Play a single sound file rapidly    forums.oracle.com

Hi, I am trying to build a beatmachine in java and I am running into a sound problem. I am using the javax.sound.sampled.Clip class to load a sound. I then put the sound into a timer set to 1000ms. Render and it works just fine. Then I set the timer to 250ms (240bpm) and I only hear the kick once every ...

35. How can get the length of a sound file    forums.oracle.com

36. Reading sound file in Java    forums.oracle.com

/** Creates a new instance of SkanasParbaude */ public SkanasParbaude(String skana) { spelet(skana); } public void spelet(String faila_vards){ Clip line = null; try { File f = new File("H:\\Burti\\BurtuApmacitajs BurtsIzvelets.wav"); //iegustam ifnormaciju par faila ierakstishanas veidu AudioFileFormat aff = AudioSystem.getAudioFileFormat(f); //iegustam ifnormaciju par skanas ierakstishanas veidu AudioFormat af = aff.getFormat(); //saliekam visu informaciju kopa, pievienojam zinas pral kassi Class DataLine.Info info ...

37. A Wrong Question: Changing Volume Info of a Sound File    forums.oracle.com

Yes, I know this is supposed to be asked in Java Sound forum, and I've already done so, but it seems nobody there is able to help me. Yes. I know cross-posting is wrong and I am sorry for doing so, but my post remained unanswered for few days now and I was hoping to get some help here instead. I've ...

38. sound file comparer    forums.oracle.com