author | Nemo <me@captnemo.in> | 2018-02-19 21:37:02.0 +05:30:00 |
---|---|---|
committer | Nemo <me@captnemo.in> | 2018-02-19 21:37:02.0 +05:30:00 |
commit | 08caa8086b77aee9e3be262363a8bf90d6564d03 [patch] |
|
tree | ee30f72eeda1a043112b981fec52338c896cd0f8 |
|
parent | a24610ff4e71c59d7ec355e4410295a540ce5928 |
|
download | 08caa8086b77aee9e3be262363a8bf90d6564d03.tar.gz |
Hopefully get sound ALSA on airsonic
Diff
media/airsonic.tf | 10 ++++++++++ media/conf/airsonic.sound.properties | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/media/airsonic.tf b/media/airsonic.tf index 37d5fee..fb4c96c 100644 --- a/media/airsonic.tf +++ a/media/airsonic.tf @@ -5,9 +5,19 @@ destroy_grace_seconds = 30 must_run = true # Unfortunately, the --device flag is not yet supported # in docker/terraform: # https://github.com/terraform-providers/terraform-provider-docker/issues/30 upload { content = "${data.template_file.airsonic-properties-file.rendered}" file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/airsonic.properties" } # This lets the Jukebox use ALSA upload { content = "${file("${path.module}/conf/airsonic.sound.properties")}" file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/sound.properties" } volumes { diff --git a/media/conf/airsonic.sound.properties b/media/conf/airsonic.sound.properties new file mode 100644 index 0000000..23c3f33 100644 --- /dev/null +++ a/media/conf/airsonic.sound.properties @@ -1,0 +1,5 @@ # https://airsonic.github.io/docs/jukebox/ javax.sound.sampled.Clip=#PCH [plughw:1,0] javax.sound.sampled.Port=#Port PCH [hw:1] javax.sound.sampled.SourceDataLine=#PCH [plughw:1,0] javax.sound.sampled.TargetDataLine=#PCH [plughw:1,0]