use RageSoundReader_FileReader.h
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user