Files
itgmania212121/stepmania/src/RageSoundReader_SDL_Sound.h
T
2002-12-27 22:11:12 +00:00

24 lines
593 B
C++

#ifndef RAGE_SOUND_READER_SDL_SOUND
#define RAGE_SOUND_READER_SDL_SOUND
#include "RageSoundReader.h"
#include "SDL_sound-1.0.0/SDL_sound.h"
class SoundReader_SDL_Sound: public SoundReader {
Sound_Sample *Sample;
const char *inbuf;
unsigned avail;
int SetPosition(int ms, bool accurate);
public:
bool Open(CString filename);
int GetLength() const;
int GetLength_Fast() const;
int SetPosition_Accurate(int ms) { return SetPosition(ms, true); }
int SetPosition_Fast(int ms) { return SetPosition(ms, false); }
int Read(char *buf, unsigned len);
~SoundReader_SDL_Sound();
};
#endif