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.

https://docs.juce.com/develop/classAudioIODeviceType.html#a71099710a2d23a76ccba190882635f76

Thanks.

1 Like