music_mod.c
changeset 427 47cf8b3f2fb0
parent 420 2594a266fc8b
child 470 5cebd6c5be2d
equal deleted inserted replaced
426:5d37755905f9 427:47cf8b3f2fb0
   157 
   157 
   158 
   158 
   159 typedef struct
   159 typedef struct
   160 {
   160 {
   161 	MREADER mr;
   161 	MREADER mr;
   162 	int offset;
   162 	long offset;
   163 	int eof;
   163 	long eof;
   164 	SDL_RWops *rw;
   164 	SDL_RWops *rw;
   165 } LMM_MREADER;
   165 } LMM_MREADER;
   166 
   166 
   167 BOOL LMM_Seek(struct MREADER *mr,long to,int dir)
   167 BOOL LMM_Seek(struct MREADER *mr,long to,int dir)
   168 {
   168 {
   191 	}
   191 	}
   192 	return EOF;
   192 	return EOF;
   193 }
   193 }
   194 BOOL LMM_Eof(struct MREADER *mr)
   194 BOOL LMM_Eof(struct MREADER *mr)
   195 {
   195 {
   196 	int offset;
   196 	long offset;
   197 	LMM_MREADER* lmmmr = (LMM_MREADER*)mr;
   197 	LMM_MREADER* lmmmr = (LMM_MREADER*)mr;
   198 	offset = LMM_Tell(mr);
   198 	offset = LMM_Tell(mr);
   199 	return offset >= lmmmr->eof;
   199 	return offset >= lmmmr->eof;
   200 }
   200 }
   201 MODULE *MikMod_LoadSongRW(SDL_RWops *rw, int maxchan)
   201 MODULE *MikMod_LoadSongRW(SDL_RWops *rw, int maxchan)