Created
June 25, 2020 04:27
-
-
Save x37v/70bd0b1a16ba49d7f4418ba26709df2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://forum.subsonic.org/forum/viewtopic.php?f=2&t=2038 | |
sudo cp local/src/ffmpeg-3.2/ffmpeg /var/subsonic/transcode/ | |
sudo ln -fs /usr/bin/lame /var/subsonic/transcode/ | |
run java audioDevList from homedir, see that USB [plughw:1,0] is our dog. | |
edit /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/sound.properties | |
add: | |
javax.sound.sampled.Clip=#USB [plughw:1,0] | |
javax.sound.sampled.Port=#Port USB [hw:1] | |
javax.sound.sampled.SourceDataLine=#USB [plughw:1,0] | |
javax.sound.sampled.TargetDataLine=#USB [plughw:1,0] | |
then edit /usr/bin/subsonic | |
add: | |
-Djavax.sound.sampled.SourceDataLine="#USB [plughw:1,0]" \ | |
after | |
-verbose:gc \ | |
example: | |
${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="#USB [plughw:1,0]" \ | |
-jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment