Read subchannel data on read (nw)

This commit is contained in:
Matt Nadareski
2021-10-06 20:46:28 -07:00
parent 43e1811349
commit 4eecc68cae

View File

@@ -1022,9 +1022,14 @@ namespace RedBookPlayer.Models.Hardware
try
{
if(_opticalDiscs[CurrentDisc] is CompactDisc compactDisc)
{
byte[] subchannelData = compactDisc.ReadSubchannels((uint)sectorsToRead);
return compactDisc.ReadSectors((uint)sectorsToRead, DataPlayback).Concat(zeroSectors).ToArray();
}
else
{
return _opticalDiscs[CurrentDisc].ReadSectors((uint)sectorsToRead).Concat(zeroSectors).ToArray();
}
}
catch { }