Search code examples
audiovisual-c++core-audioaudio-streamingaudio-capture

using core audio and wave audio together on windows


I am planning to use c++ core Audio API's to perform various audio related operations in my application like detecting device change, detecting volume levels etc. But there is also an Audio capture code in my solution that uses old Wave API's (waveInxxx) which I don't want to touch right now. Can I use core Audio API's safely and can these (core and wave) co exist together given that both these would operate on same audio end point? Will this lead to crash or hang in my application ?

Thanks in advance.


Solution

  • Yes, you can use the old wave APIs safely. They are now implemented in terms of Core Audio APIs.

    This MSDN page describes how the old APIs are implemented in terms of Core Audio:

    Interoperability with Legacy Audio APIs

    And this page has a nice diagram showing how things are plugged together.

    User-Mode Audio Components