PDA

View Full Version : How I Can play the .wav files like as windows in Turbo C++?



hadizadeh
12-18-2001, 06:08 AM
How I Can play the .wav files like as windows in Turbo C++ with sound card not PC Speaker?

VirtualAce
12-18-2001, 12:49 PM
1. Go to www.wotsit.org and get the wav file format.

2. Go to www.creative.com and download the info about programming the Sound Blaster 16 in DOS.

3. Learn about how to program the DMA controller and about the programmable interrupt controller or the PIC.

4. Learn about writing interrupt handlers in C using setvect() and getvect().

Justin W
01-01-2002, 04:06 PM
Or use the Allegro lib, and use the MP3 plugin while you're at it. ;)
http://www.talula.demon.co.uk/allegro/

Shiro
01-02-2002, 04:24 AM
The WAV-file contains linear audio, this can be directly played by the soundcard, so no MPEG-decoding is needed.

In the Win32 API there are functions for controlling the soundcard.

sean
01-02-2002, 11:36 AM
That wotsit thing is way useful! I've been trying to find something like that for ages. What I'm trying to do is create a program that reads a bitmap file and recognize text from it.

VirtualAce
01-04-2002, 09:29 AM
Reading text in BMP files?
:confused:

doubleanti
01-05-2002, 06:57 PM
That's a pretty hefty task there Sean. OCR seems to be as complicated [and arbitrary, amof] as voice recognition. But I suppose you aren't going to make it that through then. I'd be interested to see some of your results!