Overview
TheAudioTrack class extends the base Track class to provide audio-specific functionality. It manages audio clips, handles audio processing through an audio engine, and monitors audio levels in real-time.
Constructor
AudioTrack(string name)
Creates a new audio track with the specified name.The name of the audio track
Properties
Returns
TrackType.Audio to identify this as an audio track.The audio engine responsible for processing audio through the track. Inherited from the base
Track class.The engine handles:- Audio playback
- Plugin chain processing
- Volume and pan control
- Real-time audio metering
Gets the currently dragged audio clip file reader, or
null if no clip is being dragged.The name of the track. Inherited from base
Track class.Unique identifier for the track (GUID). Inherited from base
Track class.Whether the track is enabled (unmuted). Inherited from base
Track class.Whether the track is soloed. Inherited from base
Track class.Whether the track should start recording when the record button is pressed. Inherited from base
Track class.Track volume in decibels (typically -90dB to +6dB). Inherited from base
Track class.Track pan position (typically -50 to +50). Inherited from base
Track class.The color of the track as RGBA values. Inherited from base
Track class.Collection of all clips on this track. Inherited from base
Track class.The currently selected time range on the track. Inherited from base
Track class.The Y position of the track in the arrangement view. Inherited from base
Track class.The X offset stored when a clip drag operation begins. Inherited from base
Track class.Whether the mouse cursor is currently over the track. Inherited from base
Track class.Whether the track is in area selection mode. Inherited from base
Track class.Methods
SetDraggedClip(AudioFileReader draggedClip)
Sets the currently dragged audio clip.The audio file reader for the clip being dragged, or
null to clearSetDraggedClip(Clip? draggedClip)
Sets the currently dragged clip (base class method).The clip being dragged, or
null to clearSetDragStartOffset(float dragStartOffsetX)
Stores the X offset when a clip drag operation begins.The pixel offset from the clip’s left edge where dragging started
RenderArrangement()
Renders the track in the arrangement view, including clips, time selection, and visual feedback. Inherited from baseTrack class.
RenderControls()
Renders the track control panel with volume, pan, mute, solo, and other controls. Inherited from baseTrack class.
Events
VolumeMeasured
Raised when audio levels are measured on the track. This is set up automatically in the constructor.Usage Example
See Also
- AudioClip - Audio clip class for use with AudioTrack
- AudioClipData - Audio clip data container
- Track - Base track class
- TrackEngine - Audio processing engine