Ajout version Release/x64 avec les libraries x64 et tuning de la version Debug

This commit is contained in:
MarcEricMartel
2021-12-10 07:16:43 -05:00
parent 9b56a9b4a5
commit f4ec4816af
2745 changed files with 292873 additions and 8 deletions

View File

@@ -0,0 +1,35 @@
using System;
using IrrKlang;
namespace CSharp._01.HelloWorld
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
// start the sound engine with default parameters
ISoundEngine engine = new ISoundEngine();
// To play a sound, we only to call play2D(). The second parameter
// tells the engine to play it looped.
engine.Play2D("../../media/getout.ogg", true);
Console.Out.WriteLine("\nHello World");
do
{
Console.Out.WriteLine("Press any key to play some sound, press 'q' to quit.");
// play a single sound
engine.Play2D("../../media/bell.wav");
}
while(_getch() != 'q');
}
// some simple function for reading keys from the console
[System.Runtime.InteropServices.DllImport("msvcrt")]
static extern int _getch();
}
}