Partager via


Call Order for Waveform Audio Functions (Windows Embedded CE 6.0)

1/6/2010

The following sections describe how the API is commonly used to play and record audio.

Recording Waveform Audio

The common order for calling Waveform Audio functions to record audio is:

  1. waveInOpen
  2. waveInPrepareHeader
  3. waveInAddBuffer
  4. waveInStart
  5. waveInUnprepareHeader
  6. waveInClose

Playing Waveform Audio

The common order for calling Waveform Audio functions to play audio is:

  1. waveOutOpen
  2. waveOutPrepareHeader
  3. waveOutWrite
  4. waveOutUnprepareHeader
  5. waveOutClose

See Also

Concepts

Using the Waveform Audio Interface