Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Features and their tests

Everything this plugin does, and the tests that check it. The test names are the ones cargo test prints; a name after linux: is a test that only runs on PipeWire’s system. scripts/test-all.py fails when a feature here names no test, or names a test that doesn’t exist, so a new feature gets its row and its tests in the same pull request (the Testing page says how to run them).

The plugin is a thin layer: opening, feeding and closing the output stream is OxiGuitar’s own oxiguitar-audio-cpal code (through cpal), which this plugin uses as released. Hearing the sound needs a sound card, so the tests check everything up to it.

FeatureWhat it doesTests
The PipeWire outputOffers the audio-device service pipewire, and nothing else, so the player can send its sound to PipeWire.tests::it_offers_only_the_pipewire_audio_device, linux:contract::the_plugin_file_keeps_the_contract
Says when it can’t playProbing tells the player whether there’s an output, and why not when there isn’t (shown in the footer and Tools > Plugins).linux:tests::probing_says_whether_there_is_an_output
Picks the output deviceLists the system’s output devices by name for the footer’s output chooser.linux:tests::listing_the_outputs_answers_with_or_without_a_device
Refuses wrong requestsA damaged request to open an output, or a method it doesn’t have, gets an error, never a crash.linux:tests::wrong_requests_are_refused
Only on PipeWire’s systemIts manifest limits it to linux; anywhere else it is never available and says why.oxiguitar_plugin_checks::the_manifest_matches_the_plugin, windows,macos:tests::elsewhere_it_says_it_runs_only_on_linux
A working plugin fileThe .oxp file keeps the plugin contract, with this repository’s SDK version and with the newest release of OxiGuitar.linux:contract::the_plugin_file_keeps_the_contract, stage:contract (latest core)