How to do that without using DirectSound??
Posted on 2003-02-28 07:47:50 by ChristopherVigren
Hi Christopher. API you need is MCI. You can check out your API reference for it.
The easiest way for beginning is to use mciSendString to pass commands.

Set of strings you need to pass is this:

WHEN USER PUSHES RECORD BUTTON:
- "open new type waveaudio alias SOME_ALIAS"
- "set SOME_ALIAS bitspersample 8 channels 1 samplespersec 11025"
- "record SOME_ALIAS"

WHEN USER PUSHES STOP BUTTON:
- "save SOME_ALIAS"
- "close SOME_ALIAS"


There is an alternative method by using mciSendCommand I think but I never played around with it.

Happy coding!
Posted on 2003-03-02 17:02:29 by Milos
I'll test it...
Posted on 2003-03-03 02:09:26 by ChristopherVigren