Retrieves some information on a sample, stream, or MOD music channel.
DWORD WINAPI BASS_ChannelGetFlags( |
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM. |
Return value
If an error occurs, 0xFFFFFFFF is returned, use BASS_ErrorGetCode to get the error code. If successful, a combination of these flags is returned.
BASS_SAMPLE_8BITS | The channel's resolution is 8 bit, else 16 bit. |
BASS_SAMPLE_MONO | The channel is mono, else stereo. |
BASS_SAMPLE_LOOP | The channel is looped. |
BASS_SAMPLE_3D | The channel has 3D functionality enabled. |
BASS_SAMPLE_SOFTWARE | The channel is NOT using hardware mixing... it doesn't benefit from any special hardware interpolation, etc... |
BASS_SAMPLE_VAM | The channel is using the DX7 voice allocation and management features (HCHANNEL only). |
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel. |
Remarks
The BASS_SAMPLE_SOFTWARE flag indicates whether or not the channel's sample data is being mixed into the final output by the hardware. It does not indicate (in the case of a stream or MOD music) whether the processing required to generate the sample data is being done by the hardware, this processing is always done in software by BASS, a CODEC (WAV file stream), or a user defined function (user stream).
See also
BASS_ChannelGetAttributes