I'm trying to create a DocumentWindow component that will display an AudioDeviceSelectorComponent.
I've created an AudioDeviceManager in my MainContentComponent's constructor, and I've created a public function "getSharedAudioDeviceManager" in MainContentComponent that returns a reference to the AudioDeviceManager.

I'm having trouble calling the getSharedAudioDeviceManager function from within the DocumentWindow's constructor. I'm getting the error: "use of undeclared identifier MainContentComponent" when I try to use "MainContentComponent::getSharedAudioDeviceManager" to call the function. Can anybody tell me why I can't call this function? I'm a new programmer so I might be missing something basic.