Skip to main content

ResampledSource Node

Runs an embedded single-output source node, created from the node configuration in node, at the sample rate given in sampleRate, and resamples its audio to the sample rate of the graph. Use it to run a source that needs a specific sample rate in a graph running at another rate. Produces mono or stereo audio.


Configuration​

node​

Type: Node

The embedded node to create, given as a node configuration map with type and optional id and config. It must be a source node with a single output bus. Required.

FieldTypeDescription
id (Optional)StringIdentifier of the node within the graph. Referenced by connections. Auto-generated when omitted, which makes the node unreachable from connections.
objectID (Optional)objectIDIdentifier of the object within its parent scope.
typeStringFully-qualified node type, e.g. Switchboard.AudioPlayer or Superpowered.Reverb. An unqualified name is matched against every registered node factory in turn.

sampleRate​

Type: Int

The sample rate, in Hz, that the embedded node runs at. Its audio is resampled from this rate to the sample rate of the graph. Required.


Properties​

Inherits properties from its parents, Node, SwitchboardObject.

This object does not provide any additional properties.


Actions​

Inherits actions from its parent, SwitchboardObject.

This object does not provide any additional actions.


Events​

This object does not provide any events.