27 lines
568 B
C#
27 lines
568 B
C#
|
using Godot;
|
||
|
using System.Reflection;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
public class AudioStream : AudioConnection
|
||
|
{
|
||
|
protected float[] _buffer = new float[ 0 ];
|
||
|
|
||
|
public AudioStream( AudioProcessor p, bool isInput ):base( p, isInput )
|
||
|
{
|
||
|
_buffer = new float[ audioGraph.bufferSize ];
|
||
|
}
|
||
|
|
||
|
public override void Clear()
|
||
|
{
|
||
|
_buffer = audioGraph.ClearBuffer( _buffer );
|
||
|
}
|
||
|
|
||
|
public override void UpdateBuffserSize()
|
||
|
{
|
||
|
_buffer = new float[ audioGraph.bufferSize ];
|
||
|
}
|
||
|
}
|
||
|
}
|