-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_AL_SOUND_H_
#define MSP_AL_SOUND_H_
namespace Msp {
namespace AL {
+/**
+This class facilitates loading sound files. Currently only Ogg Vorbis is
+supported.
+*/
class Sound
{
private:
public:
Sound();
- Sound(const std::string &);
~Sound();
- void open(const std::string &);
+ void open_file(const std::string &);
+ void open_memory(const void *, unsigned);
+private:
+ void open_common();
+public:
void load_data();
- void load(const std::string &);
+ void load_file(const std::string &);
+ void load_memory(const void *, unsigned);
void close();
void rewind();
unsigned read(char *, unsigned);