次の方法で共有


MIXERCONTROLDETAILS (Windows Embedded CE 6.0)

1/6/2010

This structure refers to control-detail structures, retrieving or setting state information of an audio mixer control. All members of this structure must be initialized before calling the mixerGetControlDetails and mixerSetControlDetails functions.

Syntax

typedef struct { 
  DWORD cbStruct; 
  DWORD dwControlID; 
  DWORD cChannels; 
  union { 
    HWND  hwndOwner; 
    DWORD cMultipleItems; 
  }; 
  DWORD  cbDetails; 
  LPVOID paDetails; 
} MIXERCONTROLDETAILS; 

Members

  • cbStruct
    Size, in bytes, of the MIXERCONTROLDETAILS structure.

    The size must be large enough to contain the base MIXERCONTROLDETAILS structure.

    When mixerGetControlDetails returns, this member contains the actual size of the information returned.

    The returned information will not exceed the requested size, nor will it be smaller than the base MIXERCONTROLDETAILS structure.

  • dwControlID
    Control identifier on which to get or set properties.
  • cChannels
    Number of channels on which to get or set control properties.

    The following table shows the possible values.

    Value Description

    0

    Use this value when the control is a MIXERCONTROL_CONTROLTYPE_CUSTOM control.

    1

    Use this value when the control is a MIXERCONTROL_CONTROLF_UNIFORM control or when an application needs to get and set all channels as if they were uniform.

    MIXERLINE channels

    Use this value when the properties for the control are expected on all channels for a line.

    An application cannot specify a value that falls between 1 and the number of channels for the audio line. For example, specifying 2 or 3 for a four-channel line is not valid.

    This member cannot be 0 for noncustom control types.

  • hwndOwner
    Handle to the window that owns a custom dialog box for a mixer control.

    This member is used when the MIXER_SETCONTROLDETAILSF_CUSTOM flag is specified in the mixerSetControlDetails function.

  • cMultipleItems
    Number of multiple items per channel on which to get or set properties.

    The following table shows the possible values.

    Value Description

    0

    Use this value for all controls except for a MIXERCONTROL_CONTROLF_MULTIPLE or a MIXERCONTROL_CONTROLTYPE_CUSTOM control.

    MIXERCONTROL cMultipleItems member

    Use this value when the control class is MIXERCONTROL_CONTROLF_MULTIPLE.

    MIXERCONTROLDETAILS hwndOwner member

    Use this value when the control is a MIXERCONTROL_CONTROLTYPE_CUSTOM control and the MIXER_SETCONTROLDETAILSF_CUSTOM flag is specified for the mixerSetControlDetails function.

    In this case, the hwndOwner member overlaps with cMultipleItems, providing the value of the window handle.

    When using a MIXERCONTROL_CONTROLTYPE_CUSTOM control without the MIXERCONTROL_CONTROLTYPE_CUSTOM flag, specify zero for this member.

    An application cannot specify any value other than the value specified in the cMultipleItems member of the MIXERCONTROL structure for a MIXERCONTROL_CONTROLF_MULTIPLE control.

  • paDetails
    Pointer to an array of one or more structures in which properties for the specified control are retrieved or set.

    For MIXERCONTROL_CONTROLF_MULTIPLE controls, the size of this buffer should be the product of the cChannels, cMultipleItems and cbDetails members of the MIXERCONTROLDETAILS structure.

    For controls other than MIXERCONTROL_CONTROLF_MULTIPLE types, the size of this buffer is the product of the cChannels and cbDetails members of the MIXERCONTROLDETAILS structure.

    For controls that are MIXERCONTROL_CONTROLF_MULTIPLE types, the array can be treated as a two-dimensional array that is channel major. That is, all multiple items for the left channel are given, then all multiple items for the right channel, and so on.

    For controls other than MIXERCONTROL_CONTROLF_MULTIPLE types, each element index is equivalent to the zero-based channel that it affects. That is, paDetails[0] is for the left channel and paDetails[1] is for the right channel.

    If the control is a MIXERCONTROL_CONTROLTYPE_CUSTOM control, this member must point to a buffer that is at least large enough to contain the size, in bytes, specified by the cbCustomData member of the MIXERCONTROL structure.

Requirements

Header mmsystem.h
Windows Embedded CE Windows CE 2.12 and later
Note Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

Hardware Audio Mixer Structures
mixerGetControlDetails
mixerSetControlDetails
MIXERCONTROL