mirror of https://github.com/bjornbytes/lovr.git
Minor style stuff;
This commit is contained in:
parent
96d3288dae
commit
ddcdce25dc
|
@ -1,6 +1,5 @@
|
|||
#include "api.h"
|
||||
#include "data/soundData.h"
|
||||
#include "core/ref.h"
|
||||
|
||||
static int l_lovrSoundDataGetBitDepth(lua_State* L) {
|
||||
SoundData* soundData = luax_checktype(L, 1, SoundData);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include "api.h"
|
||||
#include "data/textureData.h"
|
||||
#include "core/ref.h"
|
||||
|
||||
static int l_lovrTextureDataEncode(lua_State* L) {
|
||||
TextureData* textureData = luax_checktype(L, 1, TextureData);
|
||||
|
|
|
@ -71,6 +71,6 @@ void lovrSoundDataSetSample(SoundData* soundData, size_t index, float value) {
|
|||
}
|
||||
|
||||
void lovrSoundDataDestroy(void* ref) {
|
||||
SoundData* sd = (SoundData*)ref;
|
||||
lovrRelease(Blob, sd->blob);
|
||||
SoundData* soundData = (SoundData*) ref;
|
||||
lovrRelease(Blob, soundData->blob);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
struct AudioStream;
|
||||
|
||||
typedef struct SoundData {
|
||||
Blob *blob;
|
||||
Blob* blob;
|
||||
uint32_t channelCount;
|
||||
uint32_t sampleRate;
|
||||
size_t samples;
|
||||
|
|
|
@ -48,7 +48,7 @@ typedef struct {
|
|||
} Mipmap;
|
||||
|
||||
typedef struct TextureData {
|
||||
Blob *blob;
|
||||
Blob* blob;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
Blob* source;
|
||||
|
|
Loading…
Reference in New Issue