1 #include <msp/core/refptr.h>
2 #include <msp/io/file.h>
3 #include "oggdecoder.h"
4 #include "sounddecoder.h"
11 unsupported_sound::unsupported_sound(const string &w):
16 SoundDecoder::SoundDecoder():
24 SoundDecoder::~SoundDecoder()
29 SoundDecoder *SoundDecoder::open_file(const string &fn)
31 RefPtr<IO::BufferedFile> file = new IO::BufferedFile(fn);
32 SoundDecoder *decoder = new OggDecoder(*file);
33 decoder->source = file.release();
37 SoundDecoder *SoundDecoder::open_io(IO::Seekable &io)
39 return new OggDecoder(io);