NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class WindAircraftSoundComponent

    Aircraft sound component for wind noise generated by airflow over the fuselage and cockpit. Volume and pitch increase proportionally with airspeed to simulate increased wind noise at higher speeds.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftSoundComponentBehaviour
    WindAircraftSoundComponent
    Inherited Members
    AircraftSoundComponentBehaviour.audioMixerGroup
    AircraftSoundComponentBehaviour.basePitch
    AircraftSoundComponentBehaviour.baseVolume
    AircraftSoundComponentBehaviour.clips
    AircraftSoundComponentBehaviour.container
    AircraftSoundComponentBehaviour.aircraftController
    AircraftSoundComponentBehaviour.mixer
    AircraftSoundComponentBehaviour.sources
    AircraftSoundComponentBehaviour.Clip
    AircraftSoundComponentBehaviour.Clips
    AircraftSoundComponentBehaviour.RandomClip
    AircraftSoundComponentBehaviour.Source
    AircraftSoundComponentBehaviour.Sources
    AircraftSoundComponentBehaviour.Initialize(bool, bool)
    AircraftSoundComponentBehaviour.Awake()
    AircraftSoundComponentBehaviour.Enable()
    AircraftSoundComponentBehaviour.Disable()
    AircraftSoundComponentBehaviour.LoadDefaultAudioMixer()
    AircraftSoundComponentBehaviour.Reset()
    AircraftSoundComponentBehaviour.SetAudioSourceDefaults(AudioSource, bool, bool, float, AudioClip)
    AircraftSoundComponentBehaviour.AddSourcesToMixer()
    AircraftSoundComponentBehaviour.GetPitch()
    AircraftSoundComponentBehaviour.GetVolume()
    AircraftSoundComponentBehaviour.Play()
    AircraftSoundComponentBehaviour.Play(int)
    AircraftSoundComponentBehaviour.SetPitch(float, int)
    AircraftSoundComponentBehaviour.SetPitch(float)
    AircraftSoundComponentBehaviour.SetVolume(float, int)
    AircraftSoundComponentBehaviour.SetVolume(float, AudioSource)
    AircraftSoundComponentBehaviour.SetVolume(float)
    AircraftSoundComponentBehaviour.Stop()
    AircraftSoundComponentBehaviour.Stop(int)
    Namespace: NWH.Aerodynamics.AircraftController.Sound.SoundComponents
    Assembly: NWH.Aerodynamics.dll
    Syntax
    [Serializable]
    public class WindAircraftSoundComponent : AircraftSoundComponentBehaviour
    Remarks

    Wind noise is typically most noticeable above 20 m/s (40 kts) and increases significantly with airspeed. The component continuously plays a looping wind sound with dynamic volume and pitch modulation based on the aircraft's current airspeed.

    Fields

    | Edit this page View Source

    pitchRange

    Maximum pitch variation range applied at maximum airspeed. The pitch increases from basePitch to basePitch + pitchRange as airspeed increases. Typical values: 0.1-0.3 for subtle variation, 0.4-0.6 for pronounced variation.

    Declaration
    public float pitchRange
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    GetDefaultClipName()

    Gets the default audio clip name for wind sound.

    Declaration
    public override string GetDefaultClipName()
    Returns
    Type Description
    string

    Default clip name "Wind".

    Overrides
    AircraftSoundComponentBehaviour.GetDefaultClipName()
    | Edit this page View Source

    GetMixerGroupName()

    Gets the audio mixer group name for this sound component.

    Declaration
    public override string GetMixerGroupName()
    Returns
    Type Description
    string

    Mixer group name "Noise".

    Overrides
    AircraftSoundComponentBehaviour.GetMixerGroupName()
    | Edit this page View Source

    LoopOnAwake()

    Determines if the wind sound should loop continuously.

    Declaration
    public override bool LoopOnAwake()
    Returns
    Type Description
    bool

    True to enable continuous looping.

    Overrides
    AircraftSoundComponentBehaviour.LoopOnAwake()
    | Edit this page View Source

    PlayOnAwake()

    Determines if the wind sound should start playing automatically when the component awakens.

    Declaration
    public override bool PlayOnAwake()
    Returns
    Type Description
    bool

    True to start playing immediately.

    Overrides
    AircraftSoundComponentBehaviour.PlayOnAwake()
    | Edit this page View Source

    Update()

    Updates the wind sound volume and pitch based on current airspeed.

    Declaration
    public void Update()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics