?
Solved

waveInStart : what does it do?

Posted on 1997-12-08
5
Medium Priority
?
295 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
[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
  • 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 80 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

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