mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
This commit is contained in:
@@ -25,11 +25,6 @@ namespace love
|
||||
namespace audio
|
||||
{
|
||||
|
||||
Audio::Audio()
|
||||
{
|
||||
moduleType = M_AUDIO;
|
||||
}
|
||||
|
||||
StringMap<Audio::DistanceModel, Audio::DISTANCE_MAX_ENUM>::Entry Audio::distanceModelEntries[] =
|
||||
{
|
||||
{"none", Audio::DISTANCE_NONE},
|
||||
|
||||
@@ -64,9 +64,11 @@ public:
|
||||
static bool getConstant(const char *in, DistanceModel &out);
|
||||
static bool getConstant(DistanceModel in, const char *&out);
|
||||
|
||||
Audio();
|
||||
virtual ~Audio() {}
|
||||
|
||||
// Implements Module.
|
||||
virtual ModuleType getModuleType() const { return M_AUDIO; }
|
||||
|
||||
virtual Source *newSource(love::sound::Decoder *decoder) = 0;
|
||||
virtual Source *newSource(love::sound::SoundData *soundData) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user