Optionalbackgroundtrue limits this subscription to at most 12 frames per second, usually 10 to 12, while another application is in the foreground; false keeps the full rate.
OptionalbandsBand output only: number of bands, clamped to 8..fftSize / 2.
OptionalchannelsBin output only; stereo with band output fails with INVALID_PARAMS.
OptionaleventEvent name the frames are delivered under.
OptionalfftFFT size, a power of two; other values fail with INVALID_PARAMS. Band output raises it for 32 or more bands; bin output uses it as given. 65536 is this component's ceiling, not a foobar2000 limit, and costs about 1.5 s of PCM per frame.
OptionalfpsFrames per second, clamped to 1..60.
OptionalmaxUpper edge in Hz, greater than minFrequency. Capped at half the stream's sample rate when frames are computed, and follows it when omitted. A range entirely above that frequency yields silence frames.
OptionalminLower edge of the frequency range in Hz; bands divide the range logarithmically.
OptionaloutputWhat the frames carry; bands is ignored for bin output.
OptionalscaleBand scale, weighted when omitted. With output: 'bins' omit it or pass db; anything else fails with INVALID_PARAMS.
OptionalsubscriptionKey of the subscription; subscribing again with the same id replaces that subscription. When omitted, the key is derived from the calling window and event.
Parameters for
audio.subscribeSpectrum. Subscribe to spectrum frames of the playing audio. Each subscription keeps its own parameters; frames arrive undereventin the calling window only, at up tofpsframes per second while playback runs, plus one silence frame when it pauses or stops.