use RageSoundReader_FileReader.h

This commit is contained in:
Glenn Maynard
2003-06-22 02:08:03 +00:00
parent e347b0f3a3
commit 3070e317c7
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ bool RageSound::Load(CString sSoundFilePath, int precache)
m_sFilePath = sSoundFilePath; m_sFilePath = sSoundFilePath;
position = 0; position = 0;
SoundReader_SDL_Sound *NewSample = new SoundReader_SDL_Sound; SoundReader_FileReader *NewSample = new SoundReader_SDL_Sound;
if(!NewSample->Open(sSoundFilePath.c_str())) if(!NewSample->Open(sSoundFilePath.c_str()))
RageException::Throw( "RageSoundManager::RageSoundManager: error opening sound '%s': '%s'", RageException::Throw( "RageSoundManager::RageSoundManager: error opening sound '%s': '%s'",
sSoundFilePath.c_str(), NewSample->GetError().c_str()); sSoundFilePath.c_str(), NewSample->GetError().c_str());
+2 -2
View File
@@ -1,10 +1,10 @@
#ifndef RAGE_SOUND_READER_SDL_SOUND #ifndef RAGE_SOUND_READER_SDL_SOUND
#define RAGE_SOUND_READER_SDL_SOUND #define RAGE_SOUND_READER_SDL_SOUND
#include "RageSoundReader.h" #include "RageSoundReader_FileReader.h"
#include "SDL_sound-1.0.0/SDL_sound.h" #include "SDL_sound-1.0.0/SDL_sound.h"
class SoundReader_SDL_Sound: public SoundReader { class SoundReader_SDL_Sound: public SoundReader_FileReader {
Sound_Sample *Sample; Sound_Sample *Sample;
const char *inbuf; const char *inbuf;
unsigned avail; unsigned avail;
+2 -2
View File
@@ -1,11 +1,11 @@
#ifndef RAGE_SOUND_READER_SDL_SOUND #ifndef RAGE_SOUND_READER_SDL_SOUND
#define RAGE_SOUND_READER_SDL_SOUND #define RAGE_SOUND_READER_SDL_SOUND
#include "RageSoundReader.h" #include "RageSoundReader_FileReader.h"
typedef struct OggVorbis_File OggVorbis_File; typedef struct OggVorbis_File OggVorbis_File;
class RageSoundReader_Vorbisfile: public SoundReader { class RageSoundReader_Vorbisfile: public SoundReader_FileReader {
OggVorbis_File *vf; OggVorbis_File *vf;
char buffer[4096*4]; char buffer[4096*4];
unsigned avail; unsigned avail;