Solved

using sound in c++

Posted on 1997-08-06
3
596 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

617 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