mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 04:15:42 -04:00
CDImage: Set SubQ control for lead-out to last index SubQ
This commit is contained in:
parent
9539ce032b
commit
c3c8df14ea
@ -259,8 +259,10 @@ void CDImage::AddLeadOutIndex()
|
|||||||
Index index = {};
|
Index index = {};
|
||||||
index.start_lba_on_disc = m_lba_count;
|
index.start_lba_on_disc = m_lba_count;
|
||||||
index.length = LEAD_OUT_SECTOR_COUNT;
|
index.length = LEAD_OUT_SECTOR_COUNT;
|
||||||
index.track_number = 0xAA;
|
index.track_number = LEAD_OUT_TRACK_NUMBER;
|
||||||
index.index_number = 0;
|
index.index_number = 0;
|
||||||
|
if (!m_indices.empty())
|
||||||
|
index.control.bits = m_indices.back().control.bits;
|
||||||
m_indices.push_back(index);
|
m_indices.push_back(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user