rj-action-library/Runtime/Audio/AudioGraph/Structure/AudioNode.cs

44 lines
639 B
C#
Raw Normal View History

2025-01-03 12:09:23 +00:00
using Godot;
using System.Reflection;
using System.Collections.Generic;
using System.Text;
namespace Rokojori
{
public class AudioNode
{
protected AudioGraph _audioGraph;
public AudioGraph audioGraph => _audioGraph;
public virtual void Destroy()
{
_audioGraph = null;
}
public virtual void Clear()
{
}
public virtual void UpdateBuffserSize()
{
}
public virtual int bufferSize => audioGraph.bufferSize;
public AudioNode( AudioGraph ag)
{
_audioGraph = ag;
if ( ag != null )
{
ag._Add( this );
}
}
}
}