Raspberry Pi. Raspbian, Java, Jukebox

General discussions.

Moderator: moderators

Raspberry Pi. Raspbian, Java, Jukebox

Postby mcyzyk » Thu Jun 18, 2020 6:16 pm

FYI, running OpenJDK Java 8 on Raspbian (32-bit Debian Butch for ARM).

Jukebox does not work.

I'm seeing a lot of issues with this, and how the old Oracle Java 8 used to solve it.

Will Jukebox ever work on anything other than Oracle's Java 8 JRE?

Mark
mcyzyk
 
Posts: 9
Joined: Sat Oct 09, 2010 10:22 pm

Re: Raspberry Pi. Raspbian, Java, Jukebox

Postby mcyzyk » Tue Jun 30, 2020 8:43 pm

Ok, I've installed Java 8, OpenJDK.

Also, I found this tutorial over at AirSonic:

https://airsonic.github.io/docs/jukebox/

I ran that Java program and here is the output:

pi@raspberrypi:~ $ java audioDevList
Available mixers:
PulseAudio Mixer
default [default]
Headphones [plughw:0,0]
Audio [plughw:1,0]
Port Headphones [hw:0]
Port Audio [hw:1]

So far, in my JRE sound.properties file, I've tried "hw:1" and "plughw:1.0". (My sound card for this is an external DAC plugged into USB.)

No joy!

Sure would be great if Subsonic Jukebox worked on OpenJDK.
mcyzyk
 
Posts: 9
Joined: Sat Oct 09, 2010 10:22 pm

Re: Raspberry Pi. Raspbian, Java, Jukebox

Postby ebasta » Thu Jul 09, 2020 8:53 pm

OpenJDK on Pi's and similar have always had issues. The official Oracle release works fine. I haven't tried anything higher than 8.
ebasta
 
Posts: 92
Joined: Fri Dec 17, 2010 8:07 pm

Re: Raspberry Pi. Raspbian, Java, Jukebox

Postby mbro » Sat Feb 20, 2021 1:58 am

I have Subsonic running on DietPi on a Pi4.

Running the audioDevList java script, my output shows:

Available mixers:
PulseAudio Mixer
ALSA [default]
ALSA [plughw:0,0]
ALSA [plughw:0,1]
ALSA [plughw:0,2]
Port ALSA [hw:0]


Snippet from my subsonic.sh file:

${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
-Dsubsonic.home=${SUBSONIC_HOME} \
-Dsubsonic.host=${SUBSONIC_HOST} \
-Dsubsonic.port=${SUBSONIC_PORT} \
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dsubsonic.db="${SUBSONIC_DB}" \
-Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-Djava.awt.headless=true \
-verbose:gc \
'-Djavax.sound.sampled.SourceDataLine=#ALSA [plughw:0,0]' \
-jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &


You can see the 2nd last line referencing ALSA [plughw:0,0] and that works for me!

Jukebox mode works for me!
mbro
 
Posts: 23
Joined: Fri Mar 30, 2012 9:59 pm


Return to General

Who is online

Users browsing this forum: No registered users and 8 guests