How I Can play the .wav files like as windows in Turbo C++ with sound card not PC Speaker?
How I Can play the .wav files like as windows in Turbo C++ with sound card not PC Speaker?
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().
Or use the Allegro lib, and use the MP3 plugin while you're at it.
http://www.talula.demon.co.uk/allegro/
Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/
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.
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.
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!
hasafraggin shizigishin oppashigger...