• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

waveInStart : what does it do?

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
karlon
Asked:
karlon
  • 2
  • 2
1 Solution
 
Tommy HuiEngineerCommented:
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
 
karlonAuthor Commented:
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
 
Tommy HuiEngineerCommented:
Nope, sorry, I don't have one handy.
0
 
AlFaCommented:
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
 
AlFaCommented:
Thanks, AlFa!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now