Questions tagged [jlayer]

JLayer is a decorator for Java Swing components, often used for for painting over and catching events from subcomponents in the Swing framework.

136 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

Conflicting Jar Methods

I have been trying to make my first GUI music player in Java. So far I have been able to play MP3 with Javasound and MP3SPI. Now, I want to support .m4a songs and from what I have researched the best library to do this is JAAD. I downloaded it,…
amb110395
  • 1,545
  • 13
  • 16
0
votes
0 answers

Jlayer Mp3 player

I use JLayer to play mp3 files. I have array of files and I can play the song, go to the next one but I don't know how to go to the next song when first stops. I have five methods When song stops I get playbackEnded but I can't handle with next…
mariusz2108
  • 851
  • 2
  • 11
  • 36
0
votes
1 answer

Java Jlayer Mp3 Player - how to repeat and stop song

I have problem with mp 3 player. I'm using jLayer. This is my code private void formWindowOpened(java.awt.event.WindowEvent evt) { new Thread (){ public void run(){ try { Player prehravac; …
Mirek Mareš
  • 107
  • 1
  • 4
  • 10
0
votes
2 answers

JLayer exception when trying to play audio file

I've been testing a Java library that works in both PC and Android platforms, a few time ago someone here told me to use JLayer. Today I was happily coding and then this exception showed up: java.lang.ExceptionInInitializerError at…
Jhon
  • 582
  • 7
  • 28
0
votes
2 answers

How to stop a sound using JLayer

I'm using JLayer to play mp3 files in my game, but It's impossible for me to stop the song. That's my code: public void play(final String sonido) { reproduciendo.put(sonido, 1); Thread thread = new Thread() { public void run() { …
jramirez
  • 486
  • 9
  • 24
0
votes
2 answers

Playing only one mp3 file in a thread using JLayer in java issue

I'm working at an Audio Player, which is written in Java with GUI. For playing the mp3 files, I've chosen JLayer library from javazoom because I saw it's very popular and used. I made the GUI, managed to play the selected mp3 file from the…
Survivor
  • 674
  • 1
  • 7
  • 13
0
votes
1 answer

JLayer convert mp3 to wav

I am trying to convet mp3 to wav with JLayer, while It seems that it can not set rate. public void convert(String sourceName, String destName, ProgressListener progressListener, Decoder.Params decoderParams) Does anyone know how to do it or…
Felix
  • 1,253
  • 7
  • 22
  • 41
0
votes
1 answer

Applet AccessControlException access denied

I am trying to reference JLayer. I keep getting this error on the console Exception in thread "pool-1-thread-1" java.security.AccessControlException:…
0
votes
1 answer

File Input Stream working fine in compiler, but not working after build

I am trying to play an mp3 file using a neat library I just discovered (JLayer) and it works fine when compiled (in Netbeans) with this code: ClassLoader cl = this.getClass().getClassLoader(); url = cl.getResource("music/45.mp3"); pin = new…
Dillon Burton
  • 363
  • 6
  • 16
0
votes
1 answer

Split and fade an MP3 file with JLayer

I want to extract some music (from second x to y) from an MP3 file and add some fade-in and fade-out effects. Can I do this with JLayer? So far I only know how to play a song with this library.
501 - not implemented
  • 2,638
  • 4
  • 39
  • 74
0
votes
1 answer

Change volume java using jlayer?

I've searched and read another topics but i still can't solve my problems. I had one java main class and one java jframe. I wanna add jslider to change volume in my mp3 player. What should i do? my_player2_func class my_player2_func{ static…
0
votes
1 answer

jLayer 1.0.1 getPosition does not always return ms

I have implemented a simple usage of jLayer on my program (play/stop,display progress) which works fine. I however have an issue with the getPosition() which returns value in ms on my Windows XP machine (as documented), but in SECONDS on my Ubuntu…
phramusca
  • 113
  • 3
  • 13
-1
votes
1 answer

Creating custom JComponent with JLayer over JProgressBar

I'm attempting to create a customized JProgressBar that utilizes the JLayer class so that it can be colored differently depending on the situation, a la this solution. The thing is that I want to wrap it up as a JComponent of some sort since it…
Jesse
  • 253
  • 1
  • 3
  • 12
-2
votes
1 answer

How to solve java.lang.NoClassDefFoundError exception in Android Studio?

I am creating a project in Android Studio using LibGDX, musicg and jlayer. The problem is when using any class from these libraries in the core project the error java.lang.NoClassDefFoundError appears. I have the libraries in jar on the folder libs…
Llop
  • 1
  • 3
1 2 3
9
10