Skip to content

Commit

Permalink
feat!: default system output is now pulseaudio (#2842)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jooola committed Dec 27, 2023
1 parent 0d2d1a2 commit 083ee3f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docker/config.template.yml
Expand Up @@ -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
4 changes: 2 additions & 2 deletions docker/config.yml
Expand Up @@ -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
4 changes: 2 additions & 2 deletions docker/example/config.yml
Expand Up @@ -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
4 changes: 2 additions & 2 deletions docs/admin-manual/configuration.md
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docs/releases/unreleased.md
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions installer/config.yml
Expand Up @@ -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
2 changes: 1 addition & 1 deletion legacy/application/configs/conf.php
Expand Up @@ -207,7 +207,7 @@ public function getConfigTreeBuilder()
// 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()
Expand Down
2 changes: 1 addition & 1 deletion shared/libretime_shared/config/_models.py
Expand Up @@ -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
Expand Down

0 comments on commit 083ee3f

Please sign in to comment.