soundvision/UnityProject/Assets/Scripts/PdConnection/DspController.cs

25 lines
474 B
C#
Raw Normal View History

2019-10-05 04:15:15 +00:00
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)});
2019-10-05 04:15:15 +00:00
}
}
}
}