mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 17:55:45 -04:00
Common/CDImage: Changes to support CHD interfaces
This commit is contained in:
@ -1,14 +1,11 @@
|
||||
#pragma once
|
||||
#include "bitfield.h"
|
||||
#include "types.h"
|
||||
#include <cstdio>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
class ByteStream;
|
||||
|
||||
class CDImage
|
||||
{
|
||||
public:
|
||||
@ -211,7 +208,7 @@ protected:
|
||||
struct Index
|
||||
{
|
||||
u64 file_offset;
|
||||
std::FILE* file;
|
||||
u32 file_index;
|
||||
u32 file_sector_size;
|
||||
LBA start_lba_on_disc;
|
||||
u32 track_number;
|
||||
@ -223,6 +220,9 @@ protected:
|
||||
bool is_pregap;
|
||||
};
|
||||
|
||||
// Reads a single sector from an index.
|
||||
virtual bool ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index) = 0;
|
||||
|
||||
const Index* GetIndexForDiscPosition(LBA pos);
|
||||
const Index* GetIndexForTrackPosition(u32 track_number, LBA track_pos);
|
||||
|
||||
|
Reference in New Issue
Block a user