Minor style stuff;

This commit is contained in:
bjorn 2020-01-22 15:41:48 -08:00
parent 96d3288dae
commit ddcdce25dc
5 changed files with 4 additions and 6 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -6,7 +6,7 @@
struct AudioStream;
typedef struct SoundData {
Blob *blob;
Blob* blob;
uint32_t channelCount;
uint32_t sampleRate;
size_t samples;

View File

@ -48,7 +48,7 @@ typedef struct {
} Mipmap;
typedef struct TextureData {
Blob *blob;
Blob* blob;
uint32_t width;
uint32_t height;
Blob* source;