mirror of
https://github.com/libretro/Play-.git
synced 2024-11-28 03:00:49 +00:00
37 lines
739 B
C++
37 lines
739 B
C++
#pragma once
|
|
|
|
#include "Stream.h"
|
|
#include "ISO9660/ISO9660.h"
|
|
|
|
class COpticalMedia
|
|
{
|
|
public:
|
|
enum TRACK_DATA_TYPE
|
|
{
|
|
TRACK_DATA_TYPE_AUDIO,
|
|
TRACK_DATA_TYPE_MODE1_2048,
|
|
TRACK_DATA_TYPE_MODE2_2352,
|
|
};
|
|
|
|
typedef std::shared_ptr<Framework::CStream> StreamPtr;
|
|
|
|
COpticalMedia(const StreamPtr&);
|
|
|
|
//TODO: Get Track Count
|
|
TRACK_DATA_TYPE GetTrackDataType(uint32) const;
|
|
CISO9660* GetFileSystem();
|
|
|
|
bool GetDvdIsDualLayer() const;
|
|
uint32 GetDvdSecondLayerStart() const;
|
|
|
|
private:
|
|
typedef std::unique_ptr<CISO9660> Iso9660Ptr;
|
|
|
|
void CheckDualLayerDvd(const StreamPtr&);
|
|
|
|
TRACK_DATA_TYPE m_track0DataType = TRACK_DATA_TYPE_MODE1_2048;
|
|
bool m_dvdIsDualLayer = false;
|
|
uint32 m_dvdSecondLayerStart = 0;
|
|
Iso9660Ptr m_fileSystem;
|
|
};
|