locked
audio sample to sound card RRS feed

  • Question

  • I need a Windows C++ function to send LPCM audio sample data directly to the sound hardware.
    We are developing with Visual Studio 2003.

    We have an LPCM stream of data and want to hear it out the speaker.

    thanks
    software developer
    Tuesday, July 28, 2009 8:01 PM

Answers

  • I don't recognize LPCM as one of the common formats, but start your investigation with the WAVEFORMATEX struct and waveOutOpen API. The waveOut... family of functions send audio sample data directly (or indirectly via a codec) to the sound hardware.
    • Marked as answer by Wesley Yao Tuesday, August 4, 2009 2:35 AM
    Tuesday, July 28, 2009 8:13 PM