Provides interfaces and classes for capture, processing, and playback of sampled audio data.
Questions tagged [javax.sound.sampled]
98 questions
0
votes
1 answer
Why does buffer size affect audio data?
I am using javax.sound.sampled and JLayer to play a MP3 file. I am trying to analyze the audio input stream to determine when the song starts and when it ends (based on the audio levels in the beginning and end of the MP3). A 4 minute song may only…

noahnu
- 3,479
- 2
- 18
- 40
0
votes
1 answer
How can I do for recording Audio from sound-card using java?
I want to record audio from sound-card using java. so this is what i got. but it only creats 0 sec wav file. recording didn't work with this code.
How can I do for recording Audio from sound-card? Please help TT
import java.io.IOException;
import…

user2688423
- 107
- 2
- 12
0
votes
1 answer
Huge latency while playing sampled sound javax.sound.sampled
I have a working soft-synth, which outputs and plays samples correctly, however I have a huge latency, about one second. My code is based of an article found here: http://www.drdobbs.com/jvm/creating-music-components-in-java/229700113?pgno=2
Did I…

Parth Mehrotra
- 2,712
- 1
- 23
- 31
0
votes
1 answer
How to read/change bytecode of a mp3 file?
I can read mp3 file and can play it. But now i want to change bytecode of a mp3 file. How i can see bytecode of a mp3 file ??? I also want to edit bytecode. I am searching Google for 2 days but can not find any solution. I will be very grateful if…

user2166895
- 81
- 1
- 1
- 7
0
votes
1 answer
Java - Error when trying to use mp3plugin for playing an mp3 file
I am writing a music visualiser and am trying to play mp3 files in java using an mp3plugin (http://pscode.org/lib/mp3plugin.jar). However I've come across an error, probably due to my lack of experience using this plugin and coding music in general.…

Perry Monschau
- 883
- 8
- 22
0
votes
2 answers
java AudioInputStream AudioSystem.write to pipe length error
Trying to pipe an AudioInputStream I got from a libary to this process:
oggenc - -o wtf.ogg
via
AudioSystem.write(audio, AudioFileFormat::Type::WAVE, process.getOutputStream());
gives me the error:
IOException
stream length not specified
file:…

nurettin
- 11,090
- 5
- 65
- 85
-2
votes
1 answer
Audio file cant be found
So for ActionListener practice Im trying to make a program that keeps track of how many times i die to this enemy in a video game. Each time the button on the GUI is pressed it increases the counter by 1 and it also is supposed to play a…

alexM
- 15
- 1
-3
votes
1 answer
Can I change the sound location?
I would like to know if i can play a sound on the right/left speaker/headphone in java by using sound.sampled?

user3058906
- 11
- 3