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]
fn new(server: &Server, hrtf_path: &CString) -> Result<HrtfNode>
[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.
fn azimuth(&self) -> FloatProperty
[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.
fn elevation(&self) -> FloatProperty
[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.
fn should_crossfade(&self) -> BoolProperty
[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]
fn connect(&self, output: i32, destination: &Node, input: i32) -> Result<()>
[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
fn connect_property(
&self,
output: i32,
destination: &Node,
slot: i32
) -> Result<()>
[src]
&self,
output: i32,
destination: &Node,
slot: i32
) -> Result<()>
Connect a node’s output to an automatable property.
fn connect_server(&self, output: i32) -> Result<()>
[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
fn disconnect(&self, output: i32, destination: &Node, input: i32) -> Result<()>
[src]
Disconnect the output of the specified node.
fn get_input_connection_count(&self) -> Result<u32>
[src]
Get the number of inputs this node has.
fn get_output_connection_count(&self) -> Result<u32>
[src]
Get the number of outputs this node has.
fn isolate(&self) -> Result<()>
[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.
fn reset(&self) -> Result<()>
[src]
Reset a node. What this means depends on the node in question. Properties are not touched by node resetting.
fn add(&self) -> FloatProperty
[src]
Returns the add property. Read more
fn mul(&self) -> FloatProperty
[src]
Returns the mul property. Read more
fn state(&self) -> NodeStateProperty
[src]
Returns the state property. Read more