The scanned info of a channel.
BASS_ChannelSetAttributeEx( DWORD handle, BASS_ATTRIB_SCANINFO, void *scaninfo, DWORD size );
handle | The channel handle. |
scaninfo | The scanned info. |
size | The size of the scanned info. |
The structure of the scanned info may change in future versions, so if the data is stored, be prepared for BASS_ChannelSetAttributeEx to fail when trying to apply it; the file can be scanned again if that happens.
DWORD size = BASS_ChannelGetAttributeEx(stream1, BASS_ATTRIB_SCANINFO, NULL, 0); // get the size void *scaninfo = malloc(size); // allocate a buffer for the data BASS_ChannelGetAttributeEx(stream1, BASS_ATTRIB_SCANINFO, scaninfo, size); // get the data BASS_ChannelSetAttributeEx(stream2, BASS_ATTRIB_SCANINFO, scaninfo, size); // apply it to the other stream free(scaninfo);