• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# Playsound?

## 2 posts in this topic

Today, I downloaded a tutorial on putting sound in your file. The example was a dos window that played two sounds and then quit. Here is the code.
 ` #include #include using namespace std; void main() { cout << "Playing synchronous sound..." << endl; PlaySound("mysound.wav", NULL, SND_FILENAME | SND_SYNC); Sleep(1500); PlaySound("mysound2.wav", NULL, SND_FILENAME | SND_ASYNC); cout << "playing asynchronous sound"; for(int i = 0; i < 50; i++) { cout<<"."; sleep(50); } cout<
It also included some other files. When I tried to do this in my file, cutting and pasting this stuff, I got all these errors saying "SND_FILENAME undeclared" and stuff. So, is it possible for me to do this in my dos program?
0

##### Share on other sites
Wow, it messed that up pretty good. Those spacing errors are not mine.
0