mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
It's now possible to build each module individually (as a DLL).
This commit is contained in:
@@ -52,9 +52,9 @@ namespace sound
|
||||
void * getData() const;
|
||||
int getSize() const;
|
||||
|
||||
int getChannels() const;
|
||||
int getBits() const;
|
||||
int getSampleRate() const;
|
||||
virtual int getChannels() const;
|
||||
virtual int getBits() const;
|
||||
virtual int getSampleRate() const;
|
||||
|
||||
void setSample(int i, float sample);
|
||||
float getSample(int i) const;
|
||||
|
||||
@@ -130,8 +130,13 @@ namespace sound
|
||||
|
||||
luax_register_gc(L, "love.sound", instance);
|
||||
|
||||
return luax_register_module(L, wrap_Sound_functions, wrap_Sound_types, "sound");
|
||||
return luax_register_module(L, wrap_Sound_functions, wrap_Sound_types, 0, "sound");
|
||||
}
|
||||
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
int luaopen_love_sound(lua_State * L)
|
||||
{
|
||||
return love::sound::wrap_Sound_open(L);
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
#define LOVE_SOUND_WRAP_SOUND_H
|
||||
|
||||
// LOVE
|
||||
#include <common/config.h>
|
||||
#include "Sound.h"
|
||||
#include "wrap_SoundData.h"
|
||||
#include "wrap_Decoder.h"
|
||||
@@ -38,3 +39,5 @@ namespace sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_SOUND_WRAP_SOUND_H
|
||||
|
||||
extern "C" LOVE_EXPORT int luaopen_love_sound(lua_State * L);
|
||||
|
||||
Reference in New Issue
Block a user