Ajout version Release/x64 avec les libraries x64 et tuning de la version Debug
This commit is contained in:
		
							
								
								
									
										35
									
								
								SQCSim2021/external/irrKlang-64bit-1.6.0/examples.net/CSharp.01.HelloWorld/Class1.cs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								SQCSim2021/external/irrKlang-64bit-1.6.0/examples.net/CSharp.01.HelloWorld/Class1.cs
									
									
									
									
										vendored
									
									
										Normal 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(); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user