mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Read subchannel data on read (nw)
This commit is contained in:
@@ -1022,9 +1022,14 @@ namespace RedBookPlayer.Models.Hardware
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
if(_opticalDiscs[CurrentDisc] is CompactDisc compactDisc)
|
if(_opticalDiscs[CurrentDisc] is CompactDisc compactDisc)
|
||||||
|
{
|
||||||
|
byte[] subchannelData = compactDisc.ReadSubchannels((uint)sectorsToRead);
|
||||||
return compactDisc.ReadSectors((uint)sectorsToRead, DataPlayback).Concat(zeroSectors).ToArray();
|
return compactDisc.ReadSectors((uint)sectorsToRead, DataPlayback).Concat(zeroSectors).ToArray();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return _opticalDiscs[CurrentDisc].ReadSectors((uint)sectorsToRead).Concat(zeroSectors).ToArray();
|
return _opticalDiscs[CurrentDisc].ReadSectors((uint)sectorsToRead).Concat(zeroSectors).ToArray();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user