Click here to Skip to main content
11,496,146 members (712 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: VC6 C++ MFC
I am building an audio player and recorder in C++. Can one audio device simultaneously play and record wave data??
Posted 4-Apr-12 20:38pm
Check this source: VC++ Example: Classes to Record, Play, and Save WAV File to disk[^]
"With these classes, sound can be both recorded and played at the same time. Continuous sound can be monitored and, upon appropriate queues, sound can be played back. Simple sound recognition could also, for instance, be put into CRecordSound. The multithreading allows other actions to take place while sound recording and playback go on. As well, recorded sound can be saved to WAV files and played back."
stib_markc at 5-Apr-12 8:33am
thanks for the article.. will get back...
stib_markc at 6-Apr-12 6:18am

this also helped me a lot thank you
Sergey Chepurin at 6-Apr-12 6:43am
You are welcome. By the way, if you have to upgrade this "VC++ Example" from VC7 to VC++2010, use option "File->New->Project from existing code...". Add #pragma comment(lib, "Winmm.lib ") and it compiles.
stib_markc at 7-Apr-12 0:59am
actually our company still using vc++6.0...
If you mean the hardware, then yes.
stib_markc at 5-Apr-12 8:32am
can you please explain how is it possible or how does it work actually?
Code-o-mat at 5-Apr-12 8:38am
Not really, sorry, if you need such technical information, then you should ask the hardware manufacturers or ask on sound-hardware related forums.
stib_markc at 5-Apr-12 8:42am
Ok, Thanks anyways..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 RyanDev 230
1 Sergey Alexandrovich Kryukov 114
2 Richard Deeming 100
3 OriginalGriff 89
4 Mostafa Asaduzzaman 59
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 5 Apr 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100