#pragma once
#include "types.h"
#include <memory>
#include <string>
#include <tuple>
#include <utility>
class Error;
class CDImage;
class StateWrapper;
namespace CDROM {
void Initialize();
void Shutdown();
void Reset();
bool DoState(StateWrapper& sw);
bool HasMedia();
const std::string& GetMediaPath();
u32 GetCurrentSubImage();
const CDImage* GetMedia();
DiscRegion GetDiscRegion();
bool IsMediaPS1Disc();
bool IsMediaAudioCD();
bool DoesMediaRegionMatchConsole();
bool InsertMedia(std::unique_ptr<CDImage>& media, DiscRegion region, std::string_view serial, std::string_view title,
Error* error);
std::unique_ptr<CDImage> RemoveMedia(bool for_disc_swap);
bool PrecacheMedia();
bool HasNonStandardOrReplacementSubQ();
void CPUClockChanged();
u8 ReadRegister(u32 offset);
void WriteRegister(u32 offset, u8 value);
void DMARead(u32* words, u32 word_count);
void DrawDebugWindow(float scale);
void SetReadaheadSectors(u32 readahead_sectors);
void DisableReadSpeedup();
std::tuple<s16, s16> GetAudioFrame();
}