Skip to main content

use_live_analysis

Function use_live_analysis 

Source
pub fn use_live_analysis(
    analyser: ReadSignal<Option<AudioAnalyser>>,
    options: LiveAnalysisOptions,
) -> ReadSignal<Option<LiveAnalysisSnapshot>>
Expand description

Reactively collect complete, interpretable snapshots from an optional Analyser.

The output is None until an Analyser is available and is cleared when the Analyser is lost or replaced. Polling is suspended while the document is hidden and ends when this hook is unmounted. Every hook invocation owns an independent schedule.