Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Monitor the current playback position within the data block by using the waveOutGetPositionor waveInGetPositionfunction and the MMTIMEstructure. Use the MMTIMEstructure to represent time in one or more different formats, including milliseconds, samples, or the Society of Motion Picture and Television Engineers (SMPTE) time formats. The wTypemember specifies the format that is used to represent time.

To retrieve the current playback position
  1. Set the wTypemember in the MMTIMEstructure to the preferred time format.

  2. Call waveOutGetPositionor waveInGetPosition.

    While calling this function, pass the MMTIMEstructure in the pmmtparameter.

  3. Check the wTypemember after the call to see whether the requested time format is supported.

    If the device does not support the time format, the device driver specifies the time in an alternate time format and changes wTypeto the selected time format.

Most waveform audio devices support samples as the preferred time format. Thus, a waveform audio device usually describes its current position in a .wav file as the number of samples from the beginning of the waveform audio file.

See Also