Initial commit.
This commit is contained in:
commit
44b5f2392f
98 changed files with 11750 additions and 0 deletions
29
sound.h
Normal file
29
sound.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// -*- C++ -*-
|
||||
|
||||
#ifndef MBOSTOCK_SOUND_H
|
||||
#define MBOSTOCK_SOUND_H
|
||||
|
||||
namespace mbostock {
|
||||
|
||||
class Sound {
|
||||
public:
|
||||
virtual ~Sound() {}
|
||||
virtual void play(int loops = 0) const = 0;
|
||||
virtual void stop() const = 0;
|
||||
};
|
||||
|
||||
class Sounds {
|
||||
public:
|
||||
static void initialize();
|
||||
static void pause();
|
||||
static void resume();
|
||||
static void dispose();
|
||||
static Sound& fromFile(const char* path);
|
||||
|
||||
private:
|
||||
Sounds();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue