I want to write a program which can record sound and play it back. Can anyone give me some examples, or webs about it??
Thx!!
I want to write a program which can record sound and play it back. Can anyone give me some examples, or webs about it??
Thx!!
WindowsOriginally posted by zen
What operating system are you using?
Is there any differences doing this program among different OS?
>> Is there any differences doing this program among different OS?
Yeah..... I think there's something in the DirextX SDK that will help you..... DirectSound.....I dont know much about DX yet so I cant be more specific at this moment......I have the SDK, but the book for me to learn is on order
There's a sample witht the DXSDK that allows you to record from a listning device to a .wav file......
Yes, this is completely o/s dependent. Playing a wav file is relatively simple using the Windows multi-media library (include mmsystem.h and link to winmm.lib), you can call -Is there any differences doing this program among different OS?
PlaySound(yourWavFilename,0,0);
However, recording isn't as simple as you need to fill out a WAVEFORMATEX structure along with a header structure and call wavInOpen(). You'll probably need to find a tutorial or book to explain the details.
zen
If u don't mind, can u help me to find some webs about it?
Of coz I'll find as well, but if someone helps me also, it would be better! thx!