- enum
- {
- BAD_AUDIO_FORMAT = 1024
- };
-
- explicit Exception(unsigned error) :
- Mf::Exception(error) {}
-
- void raise()
- {
- throw *this;
- }
-
- const char* what() const throw()
- {
- switch (code)
- {
- case BAD_AUDIO_FORMAT:
- return "unknown audio format";
- }
- return Mf::Exception::what();
- }
- };
+ return SoundStreamP(new SoundStream(name));
+ }
+
+ SoundStream();
+ explicit SoundStream(const std::string& name) :
+ Sound(name) {}
+
+ void enqueue(const std::string& name);
+
+ void play();