Customising AudioDeviceManager::playTestSound()

Users are complaining that the test sound generated is extremely loud.

We have an “output gain” slider added next to the AudioDeviceSelectorComponent which lets people control the gain structure in their monitor path, and many users reduce the output of our app to suit their strict post-production monitoring levels. Unfortunately we have no control over the test sound produced by that button in AudioDeviceSelectorComponent.

If AudioDeviceManager::playTestSound() were virtual, we could subclass and override it. Alternatively, if playTestSound() were a public std::function member variable we could supply our own test-sound lambda for the AudioDeviceManager.

2 Likes