17 lines
324 B
C#
17 lines
324 B
C#
using Godot;
|
|
|
|
namespace Frog;
|
|
|
|
public partial class AudioStreamSubtitles : StreamSubtitles
|
|
{
|
|
[Export] private AudioStreamPlayer? player;
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
if (this.player.Playing)
|
|
{
|
|
this.UpdateContent(this.player.GetPlaybackPosition());
|
|
}
|
|
}
|
|
}
|