this i snot what i meant  i do not understand why you use class member to store a state that is only used in a limited scope  you do not use headphone  and microphone  to persist the state read from the driver because it is already reflected by the connect x devices vectors so i donlt get the use of these members 