mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 11:14:39 +00:00
Read subchannel data on read (nw)
This commit is contained in:
@@ -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 { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user