Address review comments

This commit is contained in:
Matt Nadareski
2022-02-11 13:23:33 -08:00
parent 2ab1be864d
commit 2efd0fa40c
4 changed files with 36 additions and 46 deletions

View File

@@ -1369,13 +1369,14 @@ namespace RedBookPlayer.Models.Hardware
/// </summary>
/// <param name="subchannelData">Raw subchannel data to format</param>
/// <returns>Dictionary mapping subchannel to formatted data</returns>
private Dictionary<char, byte[]> ConvertSubchannels(byte[] subchannelData)
Dictionary<char, byte[]> ConvertSubchannels(byte[] subchannelData)
{
if(subchannelData == null || subchannelData.Length % 96 != 0)
return null;
// Parse the subchannel data, if possible
var parsedSubchannelData = ParseSubchannels(subchannelData);
return ConvertSubchannels(parsedSubchannelData);
}