Solved

using sound in c++

Posted on 1997-08-06
3
565 Views
Last Modified: 2012-06-27
I am just getting started in c++. I have read several books on the subject and have compiled some small programs. With Borland C++ 5.02. I want to use sounds (ie. play .wav files for certain events) in my programs. How do I get started with this? Is there a reference that talks about this. The ones I have read say nothing about sound. They deal only in graphics and text displays.
0
Comment
Question by:ko542
3 Comments
 
LVL 1

Accepted Solution

by:
mosfet earned 100 total points
ID: 1166936
You should get the book "Tricks of the Game Programming Gurus". Not only is it a good book for programming games, but it also has information on how to use sounds. Here is a list of all the books that talk about sound:

Tricks of the Game Programming Gurus
Black Art of 3D Game Programming
More Tricks of the Game Programming Gurus

0
 
LVL 23

Expert Comment

by:chensu
ID: 1166937
See Win32 SDK documentation about Waveform Audio under Multimedia section.

The simplest method is using the PlaySound function. There are also other methods: MCI commands, low-level waveform audio functions and DirectSound.
0
 

Author Comment

by:ko542
ID: 1166938
Could you elaborate on chensu's comment or maybe he could. Where can I find more info on these MCI commands,low-level waveform audio functions and DirectSound?
           thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now