Solved

using sound in c++

Posted on 1997-08-06
3
551 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

757 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

21 Experts available now in Live!

Get 1:1 Help Now