Functions in audiodevice.h