Consider adding ownership documentation to AudioIODeviceType::createDevice()

AudioIODeviceType::createDevice() returns a released std::unique_ptr (at least for CoreAudio). This means the AudioIODeviceType does not handle freeing this object and the user (caller) is responsible for that.

Please consider adding documentation to this method stating that it is callers responsibility to free the returned device, or even better change the signature of the method to return an std::unique_ptr instead.


1 Like