Questions tagged [audioinputstream]

AudioInputStream is a class in the Java package javax.sound.sampled. It's used for reading raw audio data from e.g. typically a file or microphone.

AudioInputStream is a class in the Java package . It's used for reading raw audio data from e.g. typically a file or microphone.

49 questions
-1
votes
1 answer

"player" cannot be resolved or is not a field, How to solve this compilation error?

I'm trying to play music in Java but I'm unable to solve this. package Mplayer; import java.io.File;... public class Music { private static final String AudioPlayer = null; public static void main(String[] args)... public static void…
-1
votes
1 answer

How to make audio play in JAR file?

I'm new to java programming and I'm trying to get audio to play when I export my java project into a runnable JAR file, but I keep getting an error when it tries to access the audio file as a JAR. I've tried 2 different ways to get the audio to…
-1
votes
1 answer

Extreme delay playing a audio stream from ipcam

(sorry, not an english speaker, expect lots of grammatical/syntactical error) I'm developing a piece of software to manage D-Link Ip Cam (DCS-xxxx series and other). Because this camera expose an audio stream (some model even have a speaker for…
PRiM
  • 104
  • 6
-2
votes
1 answer

Java Music File returns "(No such file or directory)" but path seems correct

I'm working on a Java game project right now, and I'm trying to import music. However, I can't seem to get it working: import java.io.File; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import…
1 2 3
4