// 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.
my old precision t3600 that was my main rig till I got my current build
will post pics of the server soon but here's the drives: (Intel DC-S4500 960gb enterprise grade SATA SSD for boot drive + Ironwolf Pro 14TB)
and my main rig does a backup to this every wed w luckybackup rsync/rclone frontend. mounted locally n added to fstab on the main rig and this t3600 does a nice job as being the backup rig n everything's synced.
Wow you are right, I never even noticed this until you said it! (870E Aorus Master)
Before testing this card I had a TP-Link tx401 10GbE PCIe card in that slot (now using XikeStor 310 Thunderbolt to Ethernet adapter).
Recent Achievements
DrWankel earned a badge First Post
DrWankel earned a badge Reacting Well
Supreme Spray LV earned a badge Week One Done
Genuinetonerink- Dubai earned a badge One Month Later
Genuinetonerink- Dubai earned a badge Week One Done
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