Struct libaudioverse::nodes::hrtf_node::HrtfNode [] [src]

pub struct HrtfNode { /* fields omitted */ }

This node implements an HRTF panner.

Inputs:

index channels description
0 1 The signal to pan.

Outputs:

index channels description
0 2 The signal with the HRTF applied.

Methods

impl HrtfNode
[src]

[src]

Creates a new HRTF node. You can use either Libaudioverse’s internal HRTF (The Diffuse MIT Kemar Dataset) by passing “default” as the HRTf file name, or an HRTF of your own.

[src]

Returns the azimuth property.

Range: [-INFINITY, INFINITY]

Default value: 0.0

The horizontal angle of the panner in degrees. 0 is straight ahead and positive values are clockwise.

[src]

Returns the elevation property.

Range: [-90.0, 90.0]

Default value: 0.0

The vertical angle of the panner in degrees. 0 is horizontal and positive values move upward.

[src]

Returns the should_crossfade property.

Default value: True

By default, panners crossfade their output. This property allows such functionality to be disabled. Note that for HRTF nodes, crossfading is more important than for other panner types. Unlike other panner types, the audio artifacts produced by disabling crossfading are noticeable, even for updates of only a few degrees.

Trait Implementations

impl Node for HrtfNode
[src]

[src]

Connect the specified output of the specified node to the specified input of the specified node. It is an error if this would cause a cycle in the graph of nodes. Read more

[src]

Connect a node’s output to an automatable property.

[src]

Connect the specified output of the specified node to the server’s input. Any node which is connected directly or indirectly to the server will remain alive even if your program lets go of it. For more details on the subject of node lifetimes, see the Libaudioverse manual. Read more

[src]

Disconnect the output of the specified node.

[src]

Get the number of inputs this node has.

[src]

Get the number of outputs this node has.

[src]

Equivalent to disconnecting all of the outputs of this node. After a call to isolate, this node will no longer be affecting audio in any way.

[src]

Reset a node. What this means depends on the node in question. Properties are not touched by node resetting.

[src]

Returns the add property. Read more

[src]

Returns the mul property. Read more

[src]

Returns the state property. Read more