CMixerControl : CObject

$Revision: 21 $

Description

This class encapsulates the MIXERCONTROL data structure. What is a MIXERCONTROL? The way the Mixer API works is the idea of sources and controls. A control is something you can set or read.

Constructors

CMixerControl()
CMixerControl( const CMixerControl& source )
CMixerControl( const MIXERCONTROL& source )
Constructs the object.

Data Members

ID
A unique control ID.
Type
Holds the type of control. It will be one of the following:
StatusFlags
Holds several flags. Here they are:
NumberOfItemsPerChannel
Holds the number of items per channel.
ShortName
Contains the short name of the control. Example: "Vol"
Name
Contains the long name of the control. Example: "Volume"
Minimum
Holds the minimum possible value.
Maximum
Holds the maximum possible value.
NumberOfSteps
Holds the number of steps between Minimum and Maximum.
NumberOfCustomDataBytes
Holds the number of custom data bytes.
Data
Holds the custom data bytes.

Methods

void Copy( const CMixerControl& source )
void Copy( const MIXERCONTROL& source )
Copies the contents of another CMixerControl or a MIXERCONTROL data structure.
void Empty( void )
Zeroizes the data members.
DWORD GetType( void ) const
Returns the type (or class) of the control. It will be one of the following:
void GetTypeName( CString& name ) const
Returns a string containing a human readable form for the Type.
DWORD GetUnits( void ) const
Returns the units the control is measured in. It will return one of the following:
BOOL IsBooleanUnits( void ) const
Returns TRUE if the control uses Boolean Units. False if it doesn't.
BOOL IsCustom( void ) const
Returns TRUE if the control is a Custom. False if it isn't.
BOOL IsCustomUnits( void ) const
Returns TRUE if the control uses Custom Units. False if it doesn't.
BOOL IsDecibelsUnits( void ) const
Returns TRUE if the control uses Decibel Units. False if it doesn't.
BOOL IsDisabled( void ) const
Returns TRUE if the control is Disabled. False if it isn't.
BOOL IsFader( void ) const
Returns TRUE if the control is a Fader. False if it isn't.
BOOL IsList( void ) const
Returns TRUE if the control is a list of controls. False if it isn't.
BOOL IsMeter( void ) const
Returns TRUE if the control is a Meter. False if it isn't.
BOOL IsMultiple( void ) const
Returns TRUE if the control is multiple. False if it isn't.
BOOL IsNumber( void ) const
Returns TRUE if the control is a number. False if it isn't.
BOOL IsPercentUnits( void ) const
Returns TRUE if the control uses percent units. False if it doesn't.
BOOL IsSignedUnits( void ) const
Returns TRUE if the control uses signed number units. False if it doesn't.
BOOL IsSlider( void ) const
Returns TRUE if the control is a slider. False if it isn't.
BOOL IsSwitch( void ) const
Returns TRUE if the control is a switch. False if it isn't.
BOOL IsTime( void ) const
Returns TRUE if the control is a time. False if it isn't.
BOOL IsUniform( void ) const
Returns TRUE if the control is uniform. False if it isn't.
BOOL IsUnsignedUnits( void ) const
Returns TRUE if the control uses unsigned number units. False if it doesn't.
void Serialize( CArchive& archive )
After all, we are a CObject...

Example

Sorry.

Copyright, 2000, Samuel R. Blackburn
$Workfile: CMixerControl.cpp $
$Modtime: 6/26/01 10:48a $