dsh_ChannelGetFormat

int dsh_ChannelGetFormat(
CHANNELID channel,
WAVEFORMATEX* lpWaveFormatEx
);

Parameters

channel
Specifies the channel the function refers.

lpWaveFormatEx
Pointer to a WaveFormatEx structure.


Return Values

Return DSHRES_OK if successful. Other return values are DSHRES_WRONGPARAM and DSHRES_GENERALERROR

Remarks

This function does not allocate memory for the WaveFormatEx structure. Extra information of the wave format the wave file contains will not be retrieved by this function. You have to open the wave file yourself in order to get this information. You cannot change the format of the channel (it is specified by the wave file!).

See also