Click or drag to resize

AnimationAudioTrackInsertKey Method

Inserts an Audio Track key at the given time in seconds. The track_idx must be the index of an Audio Track.

stream is the AudioStream resource to play. start_offset is the number of seconds cut off at the beginning of the audio stream, while end_offset is at the ending.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int AudioTrackInsertKey(
	int trackIdx,
	float time,
	Resource stream,
	float startOffset = 0f,
	float endOffset = 0f
)

Parameters

trackIdx
Type: SystemInt32

[Missing <param name="trackIdx"/> documentation for "M:Godot.Animation.AudioTrackInsertKey(System.Int32,System.Single,Godot.Resource,System.Single,System.Single)"]

time
Type: SystemSingle

[Missing <param name="time"/> documentation for "M:Godot.Animation.AudioTrackInsertKey(System.Int32,System.Single,Godot.Resource,System.Single,System.Single)"]

stream
Type: GodotResource

[Missing <param name="stream"/> documentation for "M:Godot.Animation.AudioTrackInsertKey(System.Int32,System.Single,Godot.Resource,System.Single,System.Single)"]

startOffset (Optional)
Type: SystemSingle

[Missing <param name="startOffset"/> documentation for "M:Godot.Animation.AudioTrackInsertKey(System.Int32,System.Single,Godot.Resource,System.Single,System.Single)"]

endOffset (Optional)
Type: SystemSingle

[Missing <param name="endOffset"/> documentation for "M:Godot.Animation.AudioTrackInsertKey(System.Int32,System.Single,Godot.Resource,System.Single,System.Single)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.Animation.AudioTrackInsertKey(System.Int32,System.Single,Godot.Resource,System.Single,System.Single)"]

See Also