// /*************************************************************************** // The Disc Image Chef // ---------------------------------------------------------------------------- // // Filename : Structs.cs // Author(s) : Natalia Portillo // // Component : Disk image plugins. // // --[ Description ] ---------------------------------------------------------- // // Contains structures for cdrdao cuesheets (toc/bin). // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2019 Natalia Portillo // ****************************************************************************/ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using DiscImageChef.CommonTypes; using DiscImageChef.CommonTypes.Interfaces; namespace DiscImageChef.DiscImages { public partial class Cdrdao { [SuppressMessage("ReSharper", "NotAccessedField.Local")] struct CdrdaoTrackFile { /// Track # public uint Sequence; /// Filter of file containing track public IFilter Datafilter; /// Path of file containing track public string Datafile; /// Offset of track start in file public ulong Offset; /// Type of file public string Filetype; } #pragma warning disable 169 [SuppressMessage("ReSharper", "NotAccessedField.Local")] struct CdrdaoTrack { /// Track # public uint Sequence; /// Track title (from CD-Text) public string Title; /// Track genre (from CD-Text) public string Genre; /// Track arranger (from CD-Text) public string Arranger; /// Track composer (from CD-Text) public string Composer; /// Track performer (from CD-Text) public string Performer; /// Track song writer (from CD-Text) public string Songwriter; /// Track ISRC public string Isrc; /// Disk provider's message (from CD-Text) public string Message; /// File struct for this track public CdrdaoTrackFile Trackfile; /// Indexes on this track public Dictionary Indexes; /// Track pre-gap in sectors public ulong Pregap; /// Track post-gap in sectors public ulong Postgap; /// Digical Copy Permitted public bool FlagDcp; /// Track is quadraphonic public bool Flag_4Ch; /// Track has preemphasis public bool FlagPre; /// Bytes per sector public ushort Bps; /// Sectors in track public ulong Sectors; /// Starting sector in track public ulong StartSector; /// Track type public string Tracktype; public bool Subchannel; public bool Packedsubchannel; } [SuppressMessage("ReSharper", "NotAccessedField.Local")] struct CdrdaoDisc { /// Disk title (from CD-Text) public string Title; /// Disk genre (from CD-Text) public string Genre; /// Disk arranger (from CD-Text) public string Arranger; /// Disk composer (from CD-Text) public string Composer; /// Disk performer (from CD-Text) public string Performer; /// Disk song writer (from CD-Text) public string Songwriter; /// Disk provider's message (from CD-Text) public string Message; /// Media catalog number public string Mcn; /// Disk type public MediaType Disktype; /// Disk type string public string Disktypestr; /// Disk CDDB ID public string DiskId; /// Disk UPC/EAN public string Barcode; /// Tracks public List Tracks; /// Disk comment public string Comment; } #pragma warning restore 169 } }