ConstRead the whole store both as a map and as one JSON text.
Reads the value stored under key. A key that is not stored is not an
error: the response has found: false and value set to
defaultValue, or null when no default is given.
Report which DSP preset is selected.
foobar2000's Advanced preferences from the root, or from below
parentGuid, in entries; each branch has its entries nested in
children.
Read one Advanced preferences entry by GUID.
Full snapshot of the portable-config cache. Returns the
{ success, items, configs, count } envelope; items and
configs are interchangeable aliases of the same map.
The installed components, in components.
Report foobar2000's "cursor follows playback" setting.
The stored DSP presets, in presets.
Each pattern is present only when foobar2000 has it configured, so
with neither configured the response is { success: true } alone.
Report whether the media library is enabled and loaded, and how many items it holds.
Report the output settings in effect: module, device, buffer length, bit depth, dithering and fades.
The devices of every output module, in devices, flagged when one is in effect.
Report foobar2000's "playback follows cursor" setting.
Every preferences page, then every preferences branch, in pages.
Report the GUIDs of foobar2000's standard preferences parents.
Resolve the active ReplayGain source mode.
The host returns the mode as an integer (0 = none, 1 = track,
2 = album, 3 = byPlaybackOrder). Use the
REPLAYGAIN_SOURCE_MODE constant dictionary exported alongside
the response type to compare against named entries:
const r = await config.getReplaygainMode();
if (r.mode === REPLAYGAIN_SOURCE_MODE.track) { ... }
The value field is an alias of mode retained for
compatibility with older host builds.
Report the foobar2000 version, this component's version and the profile folder.
Delete a key from the component's configuration store.
Return one Advanced preferences entry to its default value.
Stores any JSON value under key. A top-level null is refused
with an INVALID_PARAMS failure envelope; clear a key with
config.remove instead.
Select a preset by its index from config.getDspPresets. An
index past the end resolves with an INVALID_INDEX failure envelope.
Write one Advanced preferences entry: a boolean for a checkbox or
radio entry, a string or a number for a string or integer entry.
A value of the wrong kind resolves with an INVALID_PARAMS failure
envelope.
Turn foobar2000's "cursor follows playback" setting on or off.
Set the output buffer length.
Accepts either a single numeric argument (milliseconds, matching
the original (ms) signature) or an options object that lets
callers pick the unit explicitly:
milliseconds — buffer in ms, from 50 to 2000.bufferLength — buffer in seconds (the host's native unit), from
0.05 to 2.If both fields are present the host uses milliseconds, though it
still refuses a bufferLength outside its range. Out-of-range values
and a call with neither field resolve with an INVALID_PARAMS
failure envelope.
Switch output to a device of an output module; take both GUIDs from config.getOutputDevices.
Turn foobar2000's "playback follows cursor" setting on or off.
Set the active ReplayGain source mode.
Accepts either an integer (0-3, see REPLAYGAIN_SOURCE_MODE),
sent as mode, or a name, sent as sourceMode
('none' | 'track' | 'album' | 'byPlaybackOrder' | 'auto').
'auto' is treated by the host as an alias of
'byPlaybackOrder' and yields integer mode 3.
Open foobar2000's Media Library preferences page.
config— output / DSP / advanced / portable-config namespace.