Originally Posted by
sakonpure6
In my volume mixer Java was muted.
Well ... I could not help more.
Originally Posted by
sakonpure6
Do you know how to run music at the same time as a JFrame window? Because I am making a game and JFrame won't run at the same time the music is playing. Also, how can you loop , or play another sound file at the same time?
The play() of Player is
synchronous, this means that it keeps busy the "current" thread. If the current thread is the Event Dispatch Thread (for example when you are in the context of an actionPerformed for a JButton), it's a very bad thing. The main rule in Swing is to not block the EDT for too much time.
Solution: start the playing in a
new thread. You should have basic knowledge on threads and the implications about the use of multi-threading.