reforger-eq/README.md

114 lines
2.7 KiB
Markdown
Raw Normal View History

2026-05-02 14:21:02 +01:00
# reforger-surround
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
Temporary PipeWire/PulseAudio 5.1 sink helper for testing Arma Reforger surround output on Linux.
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
It creates a virtual 5.1 output device, makes it the launch-time default, then exposes Reforger back to that device after normal system audio is restored.
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
## Requirements
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
- PipeWire with PulseAudio compatibility
- `pactl`
2026-05-02 14:49:32 +01:00
- Arma Reforger running through Steam/Proton
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
## Install
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
Run from the repo:
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
./reforger-surround --help
2026-05-02 13:16:20 +00:00
```
2026-05-02 14:49:32 +01:00
Or install locally:
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
install -Dm755 reforger-surround ~/.local/bin/reforger-surround
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
## Workflow
2026-05-02 13:16:20 +00:00
2026-05-02 16:06:15 +01:00
```bash
reforger-surround launch
```
This runs `up`, launches Arma Reforger through Steam, waits for the audio stream, then restores normal system audio while keeping Reforger exposed to the 5.1 sink.
Manual workflow:
2026-05-02 14:21:02 +01:00
```bash
reforger-surround up
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
Launch Arma Reforger while `Reforger Surround 5.1` is the default output.
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
reforger-surround restore
reforger-surround check
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
If successful, clean up later with:
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
reforger-surround down
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
## Commands
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
2026-05-02 14:49:32 +01:00
reforger-surround create # create the 5.1 sink only
reforger-surround up # create sink, save default, make 5.1 default
2026-05-02 16:06:15 +01:00
reforger-surround launch # up, launch Steam app, wait for stream, restore
2026-05-02 14:49:32 +01:00
reforger-surround expose # move running Reforger stream to the 5.1 sink
reforger-surround pin # alias for expose
reforger-surround restore # restore previous default, then expose Reforger
reforger-surround down # restore default and unload the 5.1 sink
reforger-surround status # show current state
reforger-surround check # report whether Reforger is 2ch or 6ch
2026-05-02 14:21:02 +01:00
```
## Configuration
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
REFORGER_SURROUND_SINK_NAME=reforger_surround_51
REFORGER_SURROUND_DESCRIPTION="Reforger Surround 5.1"
REFORGER_SURROUND_APP_NAME="Arma Reforger"
2026-05-02 16:06:15 +01:00
REFORGER_SURROUND_STEAM_URI=steam://rungameid/1874880
REFORGER_SURROUND_WAIT_SECONDS=90
2026-05-02 14:21:02 +01:00
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
Example override:
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```bash
REFORGER_SURROUND_APP_NAME="ArmaReforgerSteam.exe" reforger-surround check
```
2026-05-02 13:16:20 +00:00
2026-05-02 16:06:15 +01:00
Use a custom launch command:
```bash
reforger-surround launch steam steam://rungameid/1874880
```
2026-05-02 14:49:32 +01:00
## Expected Result
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
Good:
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```text
Sample Specification: ... 6ch 48000Hz
Channel Map: front-left,front-right,front-center,lfe,rear-left,rear-right
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
Bad:
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
```text
Sample Specification: ... 2ch 48000Hz
Channel Map: front-left,front-right
```
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
If Reforger negotiates stereo, restart the game with the 5.1 sink selected/default before launch.
2026-05-02 13:16:20 +00:00
2026-05-02 14:21:02 +01:00
## Notes
2026-05-02 13:16:20 +00:00
2026-05-02 14:49:32 +01:00
- Prefer `restore` over manually changing your default output device.
- If you change default output manually, run `reforger-surround expose` afterward.
- `restore` keeps the 5.1 sink alive; `down` unloads it.
- LFE may be silent even when Reforger is outputting 6ch.