// This method does not return until the audio file is completely loaded
clip.open(ais);
// Start playing
clip.start();
This code works fine on windows. But when i try on my mac. It gave me an exception.
java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian, and buffers of 9838592 to 9838592 bytes is supported.
The line in bold is the line that is throwing that error.
After the update it says 25H2 11/22/24 OS Build 26200. 8728 which is not what it said before the update. Windows Feature Experience Pack 1000.26100.334.0
Question
donchen
Hi guys,
Below is a code that i use to play sound
This code works fine on windows. But when i try on my mac. It gave me an exception.
java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian, and buffers of 9838592 to 9838592 bytes is supported.
The line in bold is the line that is throwing that error.
Any idea how to solve ?
Link to comment
https://www.neowin.net/forum/topic/662026-java-sound/Share on other sites
13 answers to this question
Recommended Posts