Title / Description
Code using System; using System.Threading; using BassWrapper; namespace ConsolePlayer { class Program { static void Main(string[] args) { Console.Clear(); Console.WriteLine("Simple console mode BassWrapper.NET example : MOD/MPx/OGG/WAV player"); Console.WriteLine("--------------------------------------------------------------------"); Console.WriteLine("System: [{0}, {1}]\n", Environment.OSVersion.Platform, Environment.OSVersion ); if( args.Length != 1 ) { Console.Write( "Usage: player.exe [Filename or Location to play via Bass Library]" ); return; } string elementToPlayViaBassLibrary = args[0]; BassChannel stream = null; BassManager.Initialize(44100, BassDeviceSetups.None, IntPtr.Zero); try { stream = BassStream.FromFile( elementToPlayViaBassLibrary ); } catch { /*filetype wrong, try next*/ }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code