using System; using System.IO; using OpenTK.Audio; namespace Ogg { class MainClass { public static void Main (string[] args) { Console.WriteLine ("Hello World!"); AudioContext AC = new AudioContext(); Stream stream = new Stream("Test2.ogg", true); Console.WriteLine (stream.ToString()); while(true) { while(stream.update()) { if(!stream.playing()) { if(!stream.playback()){ throw new Exception("Ogg abruptly stopped."); } } } if(stream.loop){ stream.rewind(); } } Console.WriteLine ("Done!"); } } }