Bluetooth Framework C++ Edition
CwclCustomAudio Class Reference

The custom Audio component. More...

#include <wclAudio.h>

Inheritance diagram for CwclCustomAudio:
CwclAudioSwitcher CwclCustomAudioEndpoint CwclAudioMeter CwclAudioVolume

Public Member Functions

 CwclCustomAudio ()
 Creates new Audio component.
 
virtual ~CwclCustomAudio ()
 Frees the component.
 
virtual int Close ()
 Closes the Audio component.
 
bool GetActive () const
 Gets the Audio Switcher state.
 
 __declspec (property(get=GetActive)) bool Active
 Gets the Audio Switcher state.
 
wclMessageProcessingMethod GetMessageProcessing () const
 Gets a message processing method that should be used by the Audio component.
 
void SetMessageProcessing (const wclMessageProcessingMethod Value)
 Sets a message processing method that should be used by the Audio component.
 
 __declspec (property(get=GetMessageProcessing, put=SetMessageProcessing)) wclMessageProcessingMethod MessageProcessing
 Gets and sets a message processing method that should be used by the Audio component.
 
__event void OnClosed (void *Sender)
 The event fires when the Audio Switcher was closed.
 
__event void OnOpened (void *Sender)
 The event fires when the Audio Switcher was opened.
 

Protected Member Functions

virtual int InternalClose ()
 The method called during audio subsystem finalization.
 
virtual int InternalOpen ()
 The method called during audio subsystem initialization.
 
virtual void MessageReceived (const CwclMessage *const Message)
 The method called when a new notification message received.
 
virtual void DoClosed ()
 Calls the OnClosed event.
 
virtual void DoOpened ()
 Calls the OnOpend event.
 
virtual int Open ()
 Opens the Audio component.
 
AudioApi::IMMDeviceEnumerator * GetEnumerator () const
 Gets the Audio devices enumerator interface.
 
__declspec(property(get=GetEnumerator)) AudioApi CwclMessageReceiver * GetReceiver () const
 Gets the Audio devices enumerator interface.
 
 __declspec (property(get=GetReceiver)) CwclMessageReceiver *Receiver
 Gets the message receiver.
 

Detailed Description

The custom Audio component.

The class implements the basic Audio features for all Audio component.