Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetChannelVolumes method sets the volume levels for the various audio channels in the offloaded stream.
Syntax
HRESULT SetChannelVolumes(
[in] UINT32 u32ChannelCount,
[in] FLOAT32 *pf32Volumes,
AUDIO_CURVE_TYPE u32CurveType,
HNSTIME *pCurveDuration
);
Parameters
[in] u32ChannelCount
Indicates the number of available audio channels in the offloaded stream.
[in] pf32Volumes
A pointer to the volume levels for the various audio channels in the offloaded stream.
u32CurveType
A value from the AUDIO_CURVE_TYPE enumeration specifying the curve to use when changing the channel volumes.
pCurveDuration
A LONGLONG value specifying the curve duration in hundred nanosecond units.
Return value
The SetChannelVolumes method returns S_OK to indicate that it has completed successfully. Otherwise it returns an appropriate error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Target Platform | Windows |
| Header | audioengineendpoint.h |