Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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."
  Permalink  
Comments
stib_markc at 5-Apr-12 8:33am
   
thanks for the article.. will get back...
stib_markc at 6-Apr-12 6:18am
   
http://www.codeproject.com/Articles/52756/A-Recording-and-Playing-Thread-Class
 
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...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If you mean the hardware, then yes.
  Permalink  
Comments
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 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,192
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 5 Apr 2012
Copyright © CodeProject, 1999-2014
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