AudioCapture

Supported Hardware Devices: Pro Capture cards

Contents Demonstrated in the Sample:

  1. Capturing audio data from input signals
  2. Saving LPCM format audio signals as WAV files
  3. Channel selection via command parameters when multiple devices are available

Call Logic:

  1. Obtain version information, initialize, and enumerate devices: MWGetVersion, MWCaptureInitInstance, MWRefreshDevice, MWGetChannelCount
  2. Filter supported devices based on device information: MWGetChannelInfoByIndex
  3. Open the device:
    1. Open the device specified by command parameters: MWOpenChannel
    2. When no device is specified in command parameters, open the first available channel by default: MWGetDevicePath, MWOpenChannelByPath
  4. Retrieve audio source count and status: MWGetAudioInputSourceArray, MWGetAudioSignalStatus
  5. Start audio capture: MWStartAudioCapture
  6. Create event: MWCreateEvent
  7. Register for message notifications: MWRegisterNotify
  8. Wait for event: MWTryWaitEvent, MWWaitEvent
  9. Capture one frame of audio data: MWCaptureAudioFrame
  10. Write audio data to WAV file
  11. Repeat steps 8, 9, and 10 until capture is stopped
  12. Stop audio capture and release resources: MWUnregisterNotify, MWCloseEvent, MWCloseChannel, MWCaptureExitInstance

Result:

Result

Flowchart:

AudioCapture Flowchart

results matching ""

    No results matching ""

    results matching ""

      No results matching ""