Bluetooth Framework C++ Edition
Public Member Functions | Protected Member Functions | List of all members
CwclAudioMeter Class Reference

The Audio Meter component represents a peak meter on an audio stream to or from an audio endpoint device. More...

#include <wclAudio.h>

Inheritance diagram for CwclAudioMeter:
CwclCustomAudioEndpoint CwclCustomAudio

Public Member Functions

 CwclAudioMeter ()
 Creates new audio meter component.
 
virtual int GetChannels (unsigned long &Count) override
 Gets the number of channels in the audio stream that are monitored by peak meters.
 
int GetChannelsPeak (wclAudioPeakValues &Values)
 Gets the peak sample value for the channels in the audio stream.
 
virtual int GetHardwareFeatures (wclAudioHardwareFeatures &Features) override
 Queries the audio endpoint device for its hardware-supported functions.
 
int GetPeak (float &Value)
 Gets the peak sample value in the audio stream.
 
- Public Member Functions inherited from CwclCustomAudioEndpoint
 CwclCustomAudioEndpoint ()
 Creates new custom audio endpoint component.
 
int Close () override
 Closes the audio endpoint.
 
virtual int Open (const tstring &Id)
 Opens the specified audio endpoint.
 
virtual int GetChannels (unsigned long &Count)=0
 Gets the number of channels in the audio stream that are monitored by peak meters.
 
virtual int GetHardwareFeatures (wclAudioHardwareFeatures &Features)=0
 Queries the audio endpoint device for its hardware-supported functions.
 
tstring GetId () const
 Gets the endpoint ID.
 
 __declspec (property(get=GetId)) tstring Id
 Gets the endpoint ID.
 
__event void OnDisconnected (void *Sender)
 The even fires when the endpoint used by this class has been disconnected or removed.
 
- Public Member Functions inherited from CwclCustomAudio
 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.
 
__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 () override
 The method called during audio subsystem finalization.
 
virtual int InternalOpen () override
 The method called during audio subsystem initialization.
 
- Protected Member Functions inherited from CwclCustomAudioEndpoint
virtual void MessageReceived (const CwclMessage *const Message) override
 The method called when a new notification message received.
 
virtual void DoDisconnected ()
 Fires the OnDisconnected event.
 
- Protected Member Functions inherited from CwclCustomAudio
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.
 
IMMDeviceEnumerator * GetEnumerator () const
 Gets the Audio devices enumerator interface.
 
 __declspec (property(get=GetEnumerator)) IMMDeviceEnumerator *Enumerator
 Gets the Audio devices enumerator interface.
 
CwclMessageReceiverGetReceiver () const
 Gets the message receiver.
 
 __declspec (property(get=GetReceiver)) CwclMessageReceiver *Receiver
 Gets the message receiver.
 

Detailed Description

The Audio Meter component represents a peak meter on an audio stream to or from an audio endpoint device.

See also
CwclCustomAudioEndpoint