Код: Выделить всё
[STAThread]
static void Main(string[] args)
{
var asioOutDevice = new AsioOut("Focusrite USB ASIO");
var audioFileReader = new AudioFileReader("music.wav");
asioOutDevice.ChannelOffset = 1;
asioOutDevice.Init(audioFileReader);
asioOutDevice.Play();
asioOutDevice.PlaybackStopped += (s, e) =>
{
Console.WriteLine("Stopped.");
asioOutDevice.Stop();
};
Console.ReadLine();
}
Код: Выделить всё
while (true)
{
Console.WriteLine(asioOutDevice.PlaybackState);
Thread.Sleep(1000);
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... ot-working
Мобильная версия