Solved

waveInStart : what does it do?

Posted on 1997-12-08
5
253 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

26 Experts available now in Live!

Get 1:1 Help Now