/** Disable a track. */ void disableTrack(ProcInfo pInfo, TrackInfo remove) { remove.tc.setEnabled(false); remove.disabled = true; // Shift all the stream indexes to match. TrackInfo ti; for (int type = AUDIO; type < MEDIA_TYPES; type++) { for (int j = 0; j < pInfo.numTracksByType[type]; j++) { ti = pInfo.tracksByType[type][j]; if (ti.idx >= remove.idx) ti.idx--; } } }