svn-id: r22244
This commit is contained in:
Max Horn 2006-04-30 13:40:35 +00:00
parent c34e30ea79
commit ccfb74431b
2 changed files with 19 additions and 20 deletions

View File

@ -33,7 +33,6 @@ namespace Audio {
class DigitalTrackInfo {
public:
virtual bool error() = 0;
virtual void play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int startFrame, int duration) = 0;
virtual ~DigitalTrackInfo() { }
};

View File

@ -48,25 +48,6 @@ namespace Audio {
static AudioStream *makeVorbisStream(OggVorbis_File *file, int duration);
#pragma mark -
#pragma mark --- Ogg Vorbis Audio CD emulation ---
#pragma mark -
class VorbisTrackInfo : public DigitalTrackInfo {
private:
File *_file;
OggVorbis_File _ov_file;
bool _error_flag;
public:
VorbisTrackInfo(File *file);
~VorbisTrackInfo();
bool openTrack();
bool error() { return _error_flag; }
void play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int startFrame, int duration);
};
// These are wrapper functions to allow using a File object to
// provide data to the OggVorbis_File object.
@ -164,6 +145,25 @@ static ov_callbacks g_File_wrap = {
};
#pragma mark -
#pragma mark --- Ogg Vorbis Audio CD emulation ---
#pragma mark -
class VorbisTrackInfo : public DigitalTrackInfo {
private:
File *_file;
OggVorbis_File _ov_file;
bool _error_flag;
public:
VorbisTrackInfo(File *file);
~VorbisTrackInfo();
bool openTrack();
bool error() { return _error_flag; }
void play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int startFrame, int duration);
};
VorbisTrackInfo::VorbisTrackInfo(File *file) {
//debug(5, "" __FILE__ ":%i", __LINE__);