mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Port only MVVM work and related fixes
This commit is contained in:
@@ -122,6 +122,12 @@ namespace RedBookPlayer.Models.Discs
|
||||
|
||||
#region Helpers
|
||||
|
||||
/// <summary>
|
||||
/// Load the desired track, if possible
|
||||
/// </summary>
|
||||
/// <param name="track">Track number to load</param>
|
||||
public abstract void LoadTrack(int track);
|
||||
|
||||
/// <summary>
|
||||
/// Load the first valid track in the image
|
||||
/// </summary>
|
||||
@@ -132,7 +138,7 @@ namespace RedBookPlayer.Models.Discs
|
||||
/// </summary>
|
||||
/// <param name="sectorsToRead">Current number of sectors to read</param>
|
||||
/// <returns>Byte array representing the read sectors, if possible</returns>
|
||||
public byte[] ReadSectors(uint sectorsToRead) => _image.ReadSectors(CurrentSector, sectorsToRead);
|
||||
public virtual byte[] ReadSectors(uint sectorsToRead) => _image.ReadSectors(CurrentSector, sectorsToRead);
|
||||
|
||||
/// <summary>
|
||||
/// Set the total indexes from the current track
|
||||
@@ -145,12 +151,6 @@ namespace RedBookPlayer.Models.Discs
|
||||
/// <param name="sector">New sector number to use</param>
|
||||
public void SetCurrentSector(ulong sector) => CurrentSector = sector;
|
||||
|
||||
/// <summary>
|
||||
/// Load the desired track, if possible
|
||||
/// </summary>
|
||||
/// <param name="track">Track number to load</param>
|
||||
protected abstract void LoadTrack(int track);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user