mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
cleanup
svn-id: r22244
This commit is contained in:
parent
c34e30ea79
commit
ccfb74431b
@ -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() { }
|
||||
};
|
||||
|
@ -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__);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user