cleaning up example audio device implementation.