Skip to main content

AudioSystem.getLine fails under Java 8 ARM

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
mockba
Offline
Joined: 2005-03-18

WHatever line parameters I use I always get the excpetion:
No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:476)

I do not have sources downloaded so I do not know if the exception is hardcoded or here is other reason.
lsmod shows me that audio subsystem is available. The behavior is the same under "wheezy" and Arch linux. I do not have X windows running, so the behavior observed from terminal or service (deamon) process.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mockba
Offline
Joined: 2005-03-18

I have resolved the problem by installing Alsa.

The following resource was useful.