Class AudioMedia
The timeline media that represents an audio clip media event.
Implements
System.IComparable
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public class AudioMedia : Media, IComparable, IDrawable
Constructors
AudioMedia()
Declaration
public AudioMedia()
Fields
Preview
The audio clip preview.
Declaration
public AudioClipPreview Preview
Field Value
FlaxEditor.Viewport.Previews.AudioClipPreview
|
Properties
Loop
True if loop track, otherwise audio clip will stop on the end.
Declaration
public bool Loop { get; set; }
Property Value
System.Boolean
|
Offset
Playback offset of the audio (in seconds).
Declaration
public float Offset { get; set; }
Property Value
System.Single
|
Methods
OnDurationFramesChanged()
Called when media duration in frames gets changed.
Declaration
protected override void OnDurationFramesChanged()
Overrides
OnStartFrameChanged()
Called when media start frame gets changed.
Declaration
protected override void OnStartFrameChanged()
Overrides
OnTimelineChanged(Track)
Called when parent track gets changed.
Declaration
public override void OnTimelineChanged(Track track)
Parameters
FlaxEditor.GUI.Timeline.Track
track
The track. |
Overrides
OnTimelineZoomChanged()
Called when timeline zoom gets changed.
Declaration
public override void OnTimelineZoomChanged()
Overrides
Split(Int32)
Splits the media at the specified frame.
Declaration
public override Media Split(int frame)
Parameters
System.Int32
frame
The frame to split at. |
Returns
Media
The another media created after this media split. |