?
Solved

Input from sound Card

Posted on 1999-09-09
12
Medium Priority
?
200 Views
Last Modified: 2010-08-05
I want to read the signal from line-in and then plot it on screen. I have just new to VC++. I will be very greatful if any one could help me. Preferable a routine for reading the input from line-in
Thanx.
0
Comment
Question by:fmufti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 6

Accepted Solution

by:
WxW earned 300 total points
ID: 2035905
You need the waveIn functions . The structure you should use is :

Open the card with waveInOpen()
Add some buffers that hold the data with waveInPrepareHeader() and waveInAddBuffer()

Record samples with waveInStart()

When recording is finished ( callback or message or event ) , process the buffer and create the datagram you want .

If you have any problems with these functions , ask and I will help you .

If you need to separate the line from other sources ( e.g. microphone , wave etc ) , you need the mixer functions . Ask help ask well.
0
 

Author Comment

by:fmufti
ID: 2038483
Can u mail me a working sample for my problem, preferable with AppWizard, so that I can comprehend it. Because this my atarting step to use APIs in my program. I have seen the help for the above functions but glad if you could mail me working sample at :
fmufti@bonbon.net or fmufti@softhome.net. Definately the points will go to you.
Thanx.
0
 

Author Comment

by:fmufti
ID: 2038485
Can u mail me a working sample for my problem, preferably with AppWizard, so that I can comprehend it. Because this my starting step to use APIs in my program. I have seen the help for the above functions but glad if you could mail me working sample at :
fmufti@bonbon.net or fmufti@softhome.net. Definately the points will go to you.
Thanx.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 6

Expert Comment

by:WxW
ID: 2038722
Unfortunately I don't know VC++ so I can't make an AppWizzard project . I can mail you however a general demo I made for single API ( not MFC ) , that demonstrates

A.How to open and close the wave device input & output
B.How to record from the wave in
C.How to play from the wave out
D.How to compress a sample using Audio Compression Manager

I mailed that to fmufti@softhome.net
0
 
LVL 6

Expert Comment

by:WxW
ID: 2038724
In case you have any difficulties understanding my code, tell me . The application is a single window that has menus to start/stop and record/play .
0
 

Author Comment

by:fmufti
ID: 2039946
Thanx, but dont find <mem.h> header file, in VC include directory, tried to use memory.h file but didnt work, what to do..
0
 
LVL 6

Expert Comment

by:WxW
ID: 2039963
remove mem.h and change all from "memcpy" to "CopyMemory" and from "memset" to "ZeroMemory"
0
 

Author Comment

by:fmufti
ID: 2042891
I'll check, and let u know by tomorrow  if I had problem thanx.
0
 

Author Comment

by:fmufti
ID: 2046384
Giving u 50 points rest I'll give u after few days once I check the code as I am busy for few days. Thanx.
0
 

Author Comment

by:fmufti
ID: 2046391
Have all the points but if I have any difficulty I'll contact u .
Thanx.
0
 
LVL 6

Expert Comment

by:WxW
ID: 2046423
You can reach me at xmic@freemail.gr anytime you want .
0
 

Author Comment

by:fmufti
ID: 2052220
Thanx.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question