diff options
author | aap <aap@papnet.eu> | 2019-07-07 13:09:11 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-07 13:09:11 +0200 |
commit | 53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb (patch) | |
tree | fc65a6c40fa719f9d43be9e0e15be79c490135e0 /src/CdStream.h | |
parent | finished CPhysical (diff) | |
download | re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.gz re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.bz2 re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.lz re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.xz re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.zst re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.zip |
Diffstat (limited to 'src/CdStream.h')
-rw-r--r-- | src/CdStream.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/CdStream.h b/src/CdStream.h deleted file mode 100644 index 55507aa8..00000000 --- a/src/CdStream.h +++ /dev/null @@ -1,46 +0,0 @@ -#pragma once - -#define CDSTREAM_SECTOR_SIZE 2048 - -#define _GET_INDEX(a) (a >> 24) -#define _GET_OFFSET(a) (a & 0xFFFFFF) - -enum -{ - STREAM_NONE = uint8( 0), - STREAM_SUCCESS = uint8( 1), - STREAM_READING = uint8(-1), // 0xFF, - STREAM_ERROR = uint8(-2), // 0xFE, - STREAM_ERROR_NOCD = uint8(-3), // 0xFD, - STREAM_ERROR_WRONGCD = uint8(-4), // 0xFC, - STREAM_ERROR_OPENCD = uint8(-5), // 0xFB, - STREAM_WAITING = uint8(-6) // 0xFA, -}; - -struct Queue -{ - int32 *items; - int32 head; - int32 tail; - int32 size; -}; - -VALIDATE_SIZE(Queue, 0x10); - - -void CdStreamInitThread(void); -void CdStreamInit(int32 numChannels); -uint32 GetGTA3ImgSize(void); -void CdStreamShutdown(void); -int32 CdStreamRead(int32 channel, void *buffer, uint32 offset, uint32 size); -int32 CdStreamGetStatus(int32 channel); -int32 CdStreamGetLastPosn(void); -int32 CdStreamSync(int32 channel); -void AddToQueue(Queue *queue, int32 item); -int32 GetFirstInQueue(Queue *queue); -void RemoveFirstInQueue(Queue *queue); -DWORD WINAPI CdStreamThread(LPVOID lpThreadParameter); -bool CdStreamAddImage(char const *path); -char *CdStreamGetImageName(int32 cd); -void CdStreamRemoveImages(void); -int32 CdStreamGetNumImages(void);
\ No newline at end of file |