feat!: default system output is now `pulseaudio` (#2842)

BREAKING CHANGE: The default system output
(`stream.outputs.system[].kind`) changed from `alsa` to `pulseaudio`.
Make sure to update your configuration file if you rely on the default
system output.

Closes #2542
This commit is contained in:
Jonas L 2023-12-27 18:23:40 +01:00 committed by GitHub
parent 0d2d1a2673
commit 083ee3f1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 12 deletions

View File

@ -324,5 +324,5 @@ stream:
enabled: false
# System output kind.
# > must be one of (alsa, ao, oss, portaudio, pulseaudio)
# > default is alsa
kind: alsa
# > default is pulseaudio
kind: pulseaudio

View File

@ -324,5 +324,5 @@ stream:
enabled: false
# System output kind.
# > must be one of (alsa, ao, oss, portaudio, pulseaudio)
# > default is alsa
kind: alsa
# > default is pulseaudio
kind: pulseaudio

View File

@ -324,5 +324,5 @@ stream:
enabled: false
# System output kind.
# > must be one of (alsa, ao, oss, portaudio, pulseaudio)
# > default is alsa
kind: alsa
# > default is pulseaudio
kind: pulseaudio

View File

@ -529,8 +529,8 @@ stream:
enabled: false
# System output kind.
# > must be one of (alsa, ao, oss, portaudio, pulseaudio)
# > default is alsa
kind: "alsa"
# > default is pulseaudio
kind: "pulseaudio"
```
## LDAP

View File

@ -30,6 +30,10 @@ Please follow this **before the upgrade procedure**.
The `general.secret_key` field in the [configuration file](../admin-manual/configuration.md#general) is now **required**, to prevent reusing the `general.api_key` for cryptographic usage.
### The `stream.outputs.system[].kind` configuration field now defaults to `pulseaudio`
The `stream.outputs.system[].kind` field in the [configuration file](../admin-manual/configuration.md#general) default value changed from `alsa` to `pulseaudio`. Make sure to update your configuration file if you rely on the default system output.
## :warning: Known issues
The following issues may need a workaround for the time being. Please search the [issues](https://github.com/libretime/libretime/issues) before reporting problems not listed below.

View File

@ -324,5 +324,5 @@ stream:
enabled: false
# System output kind.
# > must be one of (alsa, ao, oss, portaudio, pulseaudio)
# > default is alsa
kind: alsa
# > default is pulseaudio
kind: pulseaudio

View File

@ -207,7 +207,7 @@ class Schema implements ConfigurationInterface
// System outputs
/**/->arrayNode('system')->arrayPrototype()->children()
/* */->booleanNode('enabled')->defaultFalse()->end()
/* */->scalarNode('kind')->defaultValue('alsa')
/* */->scalarNode('kind')->defaultValue('pulseaudio')
/* */->validate()->ifNotInArray(["alsa", "ao", "oss", "portaudio", "pulseaudio"])
/* */->thenInvalid('invalid stream.outputs.system.kind %s')
/* */->end()->end()

View File

@ -226,7 +226,7 @@ class SystemOutputKind(str, Enum):
class SystemOutput(BaseModel):
enabled: bool = False
kind: SystemOutputKind = SystemOutputKind.ALSA
kind: SystemOutputKind = SystemOutputKind.PULSEAUDIO
# pylint: disable=too-few-public-methods