29 #include "../idlib/precompiled.h"
76 if( strFileName ==
NULL ) {
134 mdwSize = ulDataSize /
sizeof( short );
184 if(
mhmmio->
Read( &pcmWaveFormat,
sizeof(pcmWaveFormat) ) !=
sizeof(pcmWaveFormat) ) {
196 memcpy( &
mpwfx, &pcmWaveFormat,
sizeof(pcmWaveFormat) );
206 word cbExtraBytes = 0
L;
272 return ReadOGG( pBuffer, dwSizeToRead, pdwSizeRead );
285 if ( pdwSizeRead !=
NULL ) {
286 *pdwSizeRead = dwSizeToRead;
296 if( pBuffer ==
NULL ) {
300 dwSizeToRead =
mhmmio->
Read( pBuffer, dwSizeToRead );
306 if ( pdwSizeRead !=
NULL ) {
307 *pdwSizeRead = dwSizeToRead;
#define mmioFOURCC(ch0, ch1, ch2, ch3)
virtual idFile * OpenFileRead(const char *relativePath, bool allowCopyFiles=true, const char *gamedir=NULL)=0
waveformatextensible_t mpwfx
idStr & SetFileExtension(const char *extension)
assert(prefInfo.fullscreenBtn)
virtual int ReadFile(const char *relativePath, void **buffer, ID_TIME_T *timestamp=NULL)=0
idFileSystem * fileSystem
int Open(const char *strFileName, waveformatex_t *pwfx=NULL)
int OpenFromMemory(short *pbData, int ulDataSize, waveformatextensible_t *pwfx)
int OpenOGG(const char *strFileName, waveformatex_t *pwfx=NULL)
void LittleRevBytes(void *bp, int elsize, int elcount)
virtual void virtual void FatalError(const char *fmt,...) id_attribute((format(printf
virtual int Read(void *buffer, int len)
int Read(byte *pBuffer, int dwSizeToRead, int *pdwSizeRead)
virtual int Seek(long offset, fsOrigin_t origin)
virtual ID_TIME_T Timestamp(void)
virtual void VPCALL Memcpy(void *dst, const void *src, const int count)=0
short LittleShort(short l)
virtual void CloseFile(idFile *f)=0
bool mbIsReadingFromMemory
int ReadOGG(byte *pBuffer, int dwSizeToRead, int *pdwSizeRead)
idSIMDProcessor * SIMDProcessor