Currently we can create our own AudioChannelSets by using the functions such as addChannel() etc. With these custom channel sets the description output by getDescription is simply ‘unknown’. This makes it difficult to display the description of custom channel sets on a GUI or to use them in many other scenarios. If this function was virtual we could inherit from AudioChannelSet and create custom descriptions for custom channel sets that would help with this.
Is there a reason that the approach suggested here wouldn’t work?
That would work, it just seems unnecessary to use a whole new function when the original one could be virtualised. It also means that all the current named channel sets need to be derived to use that function to just pass through getDescription. Also a combination of original AudioChannelSets using getDescription and derived ones using getCustomDescription could not be used since it’s 2 separate functions that need to be called.