Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound Card, Paralel Port ----------- Visual C++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi
Anyone could help me in this question?

I need play and record sound using the sound card in the same time. I need using the paralel port in the same time too.
I'm trying with Visual C++ because i need work in real time but i'm learning.

Thanks in advance.

kundt@mixmail.com
 
It sounds like you need to start separate threads to read/write from those devices. Look in the MSDN library for:
BeginThread (Win32 API)
_beginthreadex (Visual C++ library version)
KB article: Q108433
CWinThread (if you're using MFC)
AfxBeginThread

You'll also want to go slowly on this and make sure your design is multi-thread clean. You cannot write to the same variable in different threads without a lock being in place, otherwise you will pull your hair out trying to debug why it's acting weird (it'll behave differently every time!)

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top