You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/scripts/CSharp/Common/Audio/AudioDebugger.cs

16 lines
357 B

using Godot;
using System;
/// <summary>
/// Takes the current contents of a AudioStreamPlayer and offers visualization and control.
/// </summary>
public partial class AudioDebugger : AudioStreamPlayer2D
{
[Export] private float _offset_in_seconds_to_play = 0;
public void PlayFromOffset()
{
Play(_offset_in_seconds_to_play);
}
}