Did you try adding the following to the top of your CPP file:
#include "AudioDevice.h"
This worked for me.