aboutsummaryrefslogtreecommitdiff
path: root/sound/mp3.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mp3.h')
-rw-r--r--sound/mp3.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/sound/mp3.h b/sound/mp3.h
index d39ebc1391..b0a1ee323d 100644
--- a/sound/mp3.h
+++ b/sound/mp3.h
@@ -27,25 +27,11 @@
#ifdef USE_MAD
-#include "sound/audiocd.h"
-#include <mad.h>
-
class AudioInputStream;
+class DigitalTrackInfo;
class File;
-class MP3TrackInfo : public DigitalTrackInfo {
-private:
- struct mad_header _mad_header;
- long _size;
- File *_file;
- bool _error_flag;
-
-public:
- MP3TrackInfo(File *file);
- ~MP3TrackInfo();
- bool error() { return _error_flag; }
- void play(SoundMixer *mixer, PlayingSoundHandle *handle, int startFrame, int duration);
-};
+DigitalTrackInfo *makeMP3TrackInfo(File *file);
AudioInputStream *makeMP3Stream(File *file, uint size);