Module cybergrape::saf_raw
source · Expand description
This module places unsafe SAF rust bindings in the crate under their own namespace.
Constants§
- < ASPECT_RATIO_2_1 - 2:1
- < ASPECT_RATIO_4_3 - 4:3
- < ASPECT_RATIO_16_9 - 16:9
- < Ambisonic Channel Numbering (ACN)
- < (Legacy) Furse-Malham/B-format (WXYZ)
- < Codec is initialised and ready to process input audio.
- < Codec is currently being initialised, input audio should not be processed.
- < Codec has not yet been initialised, or the codec configuration has changed. Input audio should not be processed.
- < 60 degrees
- < 90 degrees
- < 180 degrees
- < 360 degrees
- < Triangular interpolation
- < Triangular interpolation (with phase-simplification)
- < (Legacy) Furse-Malham scaling
- < orthonormalised (N3D)
- < Schmidt semi-normalisation (SN3D)
- < Codec is not processing input audio, and may be reinitialised if needed.
- < Codec is processing input audio, and should not be reinitialised at this time.
- < Eighth-order (81 channels)
- < Fifth-order (36 channels)
- < First-order (4 channels)
- < Fourth-order (25 channels)
- < Ninth-order (100 channels)
- < Second-order (9 channels)
- < Seventh-order (64 channels)
- < Sixth-order (49 channels)
- < Tenth-order (121 channels)
- < Third-order (16 channels)
- < cardioid
- < hyper-cardioid
- < hyper-cardioid with max_rE weighting
Functions§
- Creates an instance of the binauraliser
- Destroys an instance of the binauraliser
- Returns the scaling factor to give the far field threshold headroom (useful for UI range limits)
- Returns the distance considered to be the far field (beyond which no near field filtering is applied), in METERS
- Returns the minimum distance possible for near field filter, in METERS
- Returns the source elevation for a given index, in METERS
- Initialises an instance of binauraliser with default settings
- Intialises the codec variables, based on current global/user parameters
- Binauralises the input signals at the user specified directions
- Alternate version of binauraliserNF_process() that performs frequency-domain DVF filtering. Not used but kept for posterity.
- Loads an input preset (see #SOURCE_CONFIG_PRESETS enum)
- Sets the panning distance for a specific channel index, in METERS
- Creates an instance of the binauraliser
- Destroys an instance of the binauraliser
- Returns current codec status codec status (see #CODEC_STATUS enum)
- Returns the DAW/Host sample rate
- Returns the flag indicating whether the diffuse-field EQ applied to the HRTFs is enabled (1) or disabled (0).
- Returns the flag value which dictates whether to enable/disable sound-field rotation (0: disabled, 1: enabled)
- Returns a flag as to whether to “flip” the sign of the current ‘pitch’ angle (0: do not flip sign, 1: flip the sign)
- Returns a flag as to whether to “flip” the sign of the current ‘roll’ angle (0: do not flip sign, 1: flip the sign)
- Returns a flag as to whether to “flip” the sign of the current ‘yaw’ angle (0: do not flip sign, 1: flip the sign)
- Returns the processing framesize (i.e., number of samples processed with every _process() call )
- Returns the HRIR/HRTF azimuth for a given index, in DEGREES
- Returns the HRIR/HRTF elevation for a given index, in DEGREES
- Returns the length of HRIRs in time-domain samples
- Returns the HRIR sample rate
- NOT IMPLEMENTED YET
- Returns the maximum number of input sources supported by binauraliser
- Returns the number of directions in the currently used HRIR set
- Returns the number of triangular groupings (faces) returned by the Convex Hull
- Returns the number of ears possessed by the average homo sapien
- Returns the number of inputs/sources in the current layout
- Returns the ‘pitch’ rotation angle, in DEGREES
- Returns the processing delay in samples (may be used for delay compensation purposes)
- (Optional) Returns current intialisation/processing progress, between 0..1
- (Optional) Returns current intialisation/processing progress text
- Returns a flag as to whether to use “yaw-pitch-roll” (0) or “roll-pitch-yaw” (1) rotation order.
- Returns the ‘roll’ rotation angle, in DEGREES
- Returns the file path for a .sofa file.
- Returns the source azimuth for a given index, in DEGREES
- Returns the source elevation for a given index, in DEGREES
- Returns the value of a flag used to dictate whether the default HRIRs in the Spatial_Audio_Framework should be used (1), or a custom HRIR set loaded via a SOFA file (0).
- Returns the ‘yaw’ rotation angle, in DEGREES
- Initialises an instance of binauraliser with default settings
- Intialises the codec variables, based on current global/user parameters
- Binauralises the input signals at the user specified directions
- Sets all intialisation flags to 1; re-initialising all settings/variables as binauraliser is currently configured, at next available opportunity.
- Enable (1) or disable (0) the diffuse-field EQ applied to the HRTFs
- Sets the flag to enable/disable (1 or 0) rotation
- Sets a flag as to whether to “flip” the sign of the current ‘pitch’ angle (0: do not flip sign, 1: flip the sign)
- Sets a flag as to whether to “flip” the sign of the current ‘roll’ angle (0: do not flip sign, 1: flip the sign)
- Sets a flag as to whether to “flip” the sign of the current ‘yaw’ angle (0: do not flip sign, 1: flip the sign)
- Loads an input preset (see #SOURCE_CONFIG_PRESETS enum)
- NOT IMPLEMENTED YET
- Sets the number of input channels/sources to binauralise
- Sets the ‘pitch’ rotation angle, in DEGREES
- Sets a flag as to whether to use “yaw-pitch-roll” (0) or “roll-pitch-yaw” (1) rotation order.
- Sets the ‘roll’ rotation angle, in DEGREES
- Sets the file path for a .sofa file, in order to employ a custom HRIR set for the decoding.
- Sets the panning azimuth for a specific channel index, in DEGREES
- Sets the panning elevation for a specific channel index, in DEGREES
- Sets gain factor for an input source.
- Set a source to solo.
- Unsolo / unmute all sources.
- Sets flag to dictate whether the default HRIRs in the Spatial_Audio_Framework should be used (1), or a custom HRIR set loaded via a SOFA file (0).
- Sets the ‘yaw’ rotation angle, in DEGREES
Type Aliases§
- Available aspect ratios
- Available Ambisonic channel ordering conventions
- Current status of the codec
- Available horizontal field-of-view (FOV) options
- Available interpolation modes
- Available loudspeaker array presets
- Available microphone array presets
- Available Ambisonic normalisation conventions
- Current status of the processing loop
- Available spherical harmonic (SH) input/output order options
- Available source configurations presets to use for encoding/panning
- Available static beamforming approaches