Skip to content

Commit

Permalink
feat(app): make snapcast configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoltzsche committed Nov 2, 2024
1 parent 8a7b3a5 commit 9e91d73
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/app/configschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,20 @@ spec:
Allowed values are 96, 160 and 320.
type: number
category: spotify
- name: SNAPSERVER_BUFFER_MS
title: Buffer size (ms)
type: number
category: Snapcast
description: The end-to-end latency, from capturing a sample on the server until the sample is played-out on the client.
- name: SNAPSERVER_CODEC
title: Codec
type: string
category: Snapcast
description: |
The codec used to transport the audio data to clients.
Supported values are flac, ogg, opus, pcm.
- name: SNAPSERVER_INITIAL_VOLUME
title: Default volume
type: number
category: Snapcast
description: The initial volume for new Snapcast clients.
3 changes: 3 additions & 0 deletions deploy/app/defaultconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ stringData:
#MOPIDY_SPOTIFY_CLIENT_ID: ""
#MOPIDY_SPOTIFY_CLIENT_SECRET: ""
MOPIDY_SPOTIFY_BITRATE: "320"
SNAPSERVER_BUFFER_MS: "700"
SNAPSERVER_CODEC: flac
SNAPSERVER_INITIAL_VOLUME: "30"
6 changes: 6 additions & 0 deletions deploy/app/deployment-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ spec:
name: ${APP_NAME:=app}-defaultconfig
- secretRef:
name: ${APP_CONFIG_SECRET_NAME:=app-defaultconfig}
- name: snapserver
envFrom:
- secretRef:
name: ${APP_NAME:=app}-defaultconfig
- secretRef:
name: ${APP_CONFIG_SECRET_NAME:=app-defaultconfig}

0 comments on commit 9e91d73

Please sign in to comment.