Rémi Bernon (@rbernon) commented about dlls/dmband/bandtrack.c:
- {
if (band->head.lBandTimeLogical <= time && band->head.lBandTimeLogical >= prev)
{
bandparam->pBand = band->band;
bandparam->mtTimePhysical = band->head.lBandTimePhysical;
prev = band->head.lBandTimeLogical;
}
else if (band->head.lBandTimeLogical > time && band->head.lBandTimeLogical < next)
next = band->head.lBandTimeLogical;
- }
- if (prev == -1)
return DMUS_E_NOT_FOUND;
- IDirectMusicBand_AddRef(bandparam->pBand);
- if (out_next) *out_next = next - time;
Also, with a couple more tests you'll see that this is not supposed to be a difference but simply the next band logical time.