Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to play multiple sound at once on c# windows form

var p1 = new System.Windows.Media.MediaPlayer();
p1.Open(new System.Uri(@"C:windowsmedia	ada.wav"));
p1.Play();

// this sleep is here just so you can distinguish the two sounds playing simultaneously
System.Threading.Thread.Sleep(500);

var p2 = new System.Windows.Media.MediaPlayer();
p2.Open(new System.Uri(@"C:windowsmedia	ada.wav"));
p2.Play();
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity get game version 
Csharp :: dotnet core 3.1 get the user that just logged in 
Csharp :: c# dictionary keys to list 
Csharp :: declare dictionary c# 
Csharp :: c# read csv file 
Csharp :: c# isdigit mehod 
Csharp :: google script get time 
Csharp :: how to flip a character in unity 2d 
Csharp :: integer required asp.net core 
Csharp :: get tag unity 
Csharp :: minimize window windows forms application c# 
Csharp :: multiplication of long numbers 
Csharp :: unity create 3d object in script 
Csharp :: set target framerate unity 
Csharp :: Dyanmically create datatable in c# 
Csharp :: limiting the amount of decimal places c# 
Csharp :: if checkbox checked in c# 
Csharp :: c# convert long to int 
Csharp :: upload file using httpwebrequest c# 
Csharp :: check if palindrome recursion in c# 
Csharp :: maclaurin series 
Csharp :: jenga db connection 
Csharp :: c# datagridview hide header 
Csharp :: wasd code for unity 
Csharp :: unity guid to object 
Csharp :: get number of days between two dates c# 
Csharp :: c# xml comment type reference 
Csharp :: LINQ: 2 join with group by 
Csharp :: razor concatonate inline 
Csharp :: Scrollable WPF ListBox 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =