Solved

waveInStart : what does it do?

Posted on 1997-12-08
5
246 Views
Last Modified: 2013-11-20
I'm programming an MFC application that records audio.  I wish to know what function does waveInStart do in the windows multimedia system.  Many thanks!!
0
Comment
Question by:karlon
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1311810
This is from the online help:

The waveInStart function starts input on the given waveform-audio input device.

Is this what you're looking for?
0
 

Author Comment

by:karlon
ID: 1311811
Thanks for your prompt reply, thui.  Could you however be more specific? and if it's not too much trouble, could you give a simple programming sequence in which waveInStart is used along with waveInOpen, waveInPrepareHeader, waveInAddBuffer, etc... Thanks again!!
0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1311812
Nope, sorry, I don't have one handy.
0
 
LVL 2

Accepted Solution

by:
AlFa earned 20 total points
ID: 1311813
does it help ?
waveInStart
The waveInStart function starts input on the given waveform-audio input device.

MMRESULT waveInStart(
  HWAVEIN hwi  
);
 
Parameters
hwi
Handle of the waveform-audio input device.
Return Values
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following:

Value Description
MMSYSERR_INVALHANDLE Specified device handle is invalid.
MMSYSERR_NODRIVER No device driver is present.
MMSYSERR_NOMEM Unable to allocate or lock memory.


Remarks
Buffers are returned to the application when full or when the waveInReset function is called (the dwBytesRecorded member in the header will contain the length of data). If there are no buffers in the queue, the data is thrown away without notifying the application, and input continues.

Calling this function when input is already started has no effect, and the function returns zero.


0
 
LVL 2

Expert Comment

by:AlFa
ID: 1311814
Thanks, AlFa!!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 87
repeateFront java challenge 31 87
has77  challenge 9 68
unix example issues 18 49
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now