-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated docs * update readmes * bump engine version * fixed a bug in FreeplayMenu scrolling up/down with left/right arrows on locked weeks. * ExpansionsLoader: allow use the keyboard key Enter to launch the selected expansion. * fixed a regresion in Week while trying to initialize Dialogue without the UI layout first. * PreloadChase: print in console when a preload is requested. * FFGraph: improve sndbridge linking. * FontType: improve (again) smoothing
- Loading branch information
Showing
22 changed files
with
1,072 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1 @@ | ||
#ifndef _externaldecoder_h | ||
#define _externaldecoder_h | ||
|
||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
|
||
typedef void (*ExternalDecoderDestroyCB)(void* decoder); | ||
typedef int32_t (*ExternalDecoderReadCB)(void* decoder, float* buffer, int32_t sample_per_channel); | ||
typedef void (*ExternalDecoderInfoCB)(void* decoder, int32_t* rate, int32_t* channels, double* duration); | ||
typedef bool (*ExternalDecoderSeekCB)(void* decoder, double timestamp); | ||
|
||
// | ||
// Important: in ExternalDecoder all callbacks are required. If necessary omit using STUBS | ||
// | ||
|
||
typedef struct { | ||
void* decoder; | ||
ExternalDecoderDestroyCB destroy_func; | ||
ExternalDecoderReadCB read_func; | ||
ExternalDecoderInfoCB info_func; | ||
ExternalDecoderSeekCB seek_func; | ||
} ExternalDecoder; | ||
|
||
#endif | ||
#include "../../sndbridge/src/externaldecoder.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1 @@ | ||
#ifndef _filehandle_h | ||
#define _filehandle_h | ||
|
||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
typedef int32_t(*FileHandle_Read)(void* handle, void* buffer, int32_t buffer_size); | ||
typedef int64_t(*FileHandle_Seek)(void* handle, int64_t offset, int32_t whence); | ||
typedef int64_t(*FileHandle_Tell)(void* handle); | ||
typedef int64_t(*FileHandle_Length)(void* handle); | ||
|
||
typedef struct { | ||
void* handle; | ||
bool is_file; | ||
FileHandle_Read read; | ||
FileHandle_Seek seek; | ||
FileHandle_Tell tell; | ||
FileHandle_Length length; | ||
} FileHandle_t; | ||
|
||
static inline int32_t filehandle_read(FileHandle_t* f, void* buffer, int32_t buffer_size) { | ||
return f->read(f->handle, buffer, buffer_size); | ||
} | ||
|
||
static inline int64_t filehandle_seek(FileHandle_t* f, int64_t offset, int32_t whence) { | ||
return f->seek(f->handle, offset, whence); | ||
} | ||
|
||
static inline int64_t filehandle_tell(FileHandle_t* f) { | ||
return f->tell(f->handle); | ||
} | ||
|
||
static inline int64_t filehandle_length(FileHandle_t* f) { | ||
return f->length(f->handle); | ||
} | ||
|
||
|
||
FileHandle_t* filehandle_init(const char* fullpath); | ||
FileHandle_t* filehandle_init2(const uint8_t* buffer, int32_t size); | ||
FileHandle_t* filehandle_init3(const char* fullpath); | ||
void filehandle_destroy(FileHandle_t* filehandle); | ||
|
||
#endif | ||
#include "../../sndbridge/src/filehandle.h" |
Oops, something went wrong.