thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 317 forks source link

Use COM smart pointers in WASAPI driver #431

Closed lalitshankarchowdhury closed 3 months ago

lalitshankarchowdhury commented 3 months ago

Use COM smart pointer (ComPtr) to simplify memory management in WASAPI code.

This reduces chances of calling Release() when a COM object has not been allocated.