I'm a beginner in C# programming and programming in general and I wanted to make a program that runs audio and runs text together.
I've tried putting the code everywhere and it either plays before the text or after it.
Here's the audio code:
using (SoundPlayer player = new SoundPlayer("C:\\Users\\Owner\\Downloads\\Undertale Sound Effect Sans.wav"))
{
player.PlaySync();
}
and here's the writing code:
Console.WriteLine("text");
Console.ReadLine();
Also I am using the System.Media
; thing.
I want the code to play the audio and writing in sync.