I am currently having problems with a console application in delphi. I start playing a song as soon as the program starts using the sndPlaySound function. But, later in the program I use sleep() to improve the aesthetics of the program. When I do this my sound stops playing. Is there anyway to have this play in the background of the program so it is not interrupted by the sleep()? Is there any other way to easily create a delay without the sleep function?