16 lines
357 B
C#
16 lines
357 B
C#
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);
|
|
}
|
|
}
|