Initial commit.

This commit is contained in:
Mike Bostock 2012-12-14 09:47:48 -08:00
commit 44b5f2392f
98 changed files with 11750 additions and 0 deletions

29
sound.h Normal file
View 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