|
MIXERCONTROLDETAILS
The MIXERCONTROLDETAILS 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.
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
values are defined:
0
Use this value when the control is a MIXERCONTROL_CONTROLTYPE_CUSTOM control.
-
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.cChannels
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 of 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 values are defined:
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.
cbDetails
Size, in bytes, of one of the following details structures being used:
MIXERCONTROLDETAILS_BOOLEAN
Boolean value for an audio line control.
MIXERCONTROLDETAILS_LISTTEXT
List text buffer for an audio line control. For information about the
appropriate details structure for a specific control, see Control Types.
MIXERCONTROLDETAILS_SIGNED
Signed value for an audio line control.
MIXERCONTROLDETAILS_UNSIGNED
Unsigned value for an audio line control.
If the control is a MIXERCONTROL_CONTROLTYPE_CUSTOM control, this member must
be equal to the cbCustomData member of the MIXERCONTROL structure.
paDetails
Address of 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.
See Also
MIXERCONTROL, mixerGetControlDetails, mixerSetControlDetails
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|