Divooka Reference

Live Signal Session

9 nodes

On this page 9

Dispose

Function

Stops the sound and closes the devices.

Signature
Dispose(Live Signal Session: Live Signal Session)
void Dispose(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Added Delay

Function

The wait the session itself adds between a sound arriving and its being heard: the output block and the inputs' average wait in their rings. The devices add their own; Live.LiveLatencyProbe measures the whole.

Signature
AddedDelay(Live Signal Session: Live Signal Session) -> TimeSpan
TimeSpan AddedDelay(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Elapsed

Function

How long it has played.

Signature
Elapsed(Live Signal Session: Live Signal Session) -> TimeSpan
TimeSpan Elapsed(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Engine

Function

The engine the sound plays on.

Signature
Engine(Live Signal Session: Live Signal Session) -> Live Engine
LiveEngine Engine(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultLive Engine
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Inputs

Function

The inputs it reads.

Signature
Inputs(Live Signal Session: Live Signal Session) -> IReadOnlyList<Live Input>
IReadOnlyList<LiveInput> Inputs(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultIReadOnlyList<Live Input>
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Is Playing

Function

Whether it is still playing.

Signature
IsPlaying(Live Signal Session: Live Signal Session) -> Truth
bool IsPlaying(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Stop

Function

Stops the sound and closes the devices, and hands back what was played if it was being recorded, or an empty clip.

Signature
Stop(Live Signal Session: Live Signal Session) -> AudioBuffer
AudioBuffer Stop(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

To String

Function

This node carries no documentation.

Signature
ToString(Live Signal Session: Live Signal Session) -> Text
string ToString(LiveSignalSession Live Signal Session)

Parameters

nametypedefaultdescription
Live Signal SessionLive Signal Session—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing

Start

Function

Starts playing a stereo sound live: opens a recording device for each input it reads, then the output.

Signature
Start -> Live Signal Session
    left: Signal
    right: Signal
    sampleRate: Integer
    blockFrames: Optional Integer
    record: Truth
    output: I Live Output
    capture: I Live Capture
LiveSignalSession Start(
    Signal left,
    Signal right,
    int sampleRate = 44100,
    int? blockFrames,
    bool record = false,
    ILiveOutput output,
    ILiveCapture capture)

Parameters

nametypedefaultdescription
leftSignal—The left side.
rightSignal—The right side; the left again for a mono sound.
sampleRateInteger44100The rate to run at.
blockFramesOptional Integer—Frames the device renders at a time; 5 ms when not given. See LiveEngine.BlockFrames.
recordTruthFalseWhether to keep what is played, for LiveSignalSession.Stop to hand back.
outputI Live Output—Where to play; LiveOutput.Current when not given.
captureI Live Capture—Where inputs come from; LiveCapture.Current when not given.

Returns

resultLive Signal Session
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Live Signal Session
Package
Audio Processing