The new microphone builder has a nice solution for the challenge of configuring cpal settings in a failable way. Lets copy its approach.