soundvision/UnityProject/Assets/Scripts/PdConnection/DspController.cs
Chikashi Miyama d00d95859f refer #60
2019-10-05 14:18:52 +02:00

25 lines
No EOL
474 B
C#

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