soundvision/UnityProject/Assets/Scripts/PdConnection/DspController.cs
2019-10-05 11:38:46 +02:00

25 lines
No EOL
474 B
C#

namespace cylvester
{
public interface IDspController
{
bool State { set; }
}
public class DspController : IDspController
{
private IPdSocket socket_;
public DspController(IPdSocket socket)
{
socket_ = socket;
}
public bool State
{
set
{
socket_.Send (new[]{(byte)PdMessage.Dsp, (byte)(value?1:0)});
}
}
}
}