#include <stdint.h>
Go to the source code of this file.
|
#define | SG_DYN |
| Used to determine if we are building a shared library, as opposed to building a static library or consuming the library.
|
|
#define | SG_ARRAY_COUNT(arr) (sizeof(arr) / sizeof(arr[0])) |
|
|
enum | SG_AudioSampleType { SG_AUDIO_INT_16
, SG_AUDIO_INT_32
, SG_AUDIO_FLOAT_32
} |
| Enum of audio sample types. More...
|
|
enum | SG_AudioSampleRate {
SG_AUDIO_8_KHZ
, SG_AUDIO_12_KHZ
, SG_AUDIO_16_KHZ
, SG_AUDIO_24_KHZ
,
SG_AUDIO_32_KHZ
, SG_AUDIO_44_1_KHZ
, SG_AUDIO_48_KHZ
} |
| Enum of audio sample rates. More...
|
|
enum | SG_LoggingLevel { SG_LOGLEVEL_NONE
, SG_LOGLEVEL_ERROR
, SG_LOGLEVEL_DEBUG
} |
| Enum for logging level. More...
|
|
enum | SG_AnimationNodeType { SG_JOINT
, SG_BLENDSHAPE
, SG_CONTROL
} |
| Enum of animation node types. More...
|
|
◆ SG_ARRAY_COUNT
#define SG_ARRAY_COUNT |
( |
|
arr | ) |
(sizeof(arr) / sizeof(arr[0])) |
Definition at line 25 of file SG.h.
◆ SG_DYN
Used to determine if we are building a shared library, as opposed to building a static library or consuming the library.
Definition at line 17 of file SG.h.
◆ SG_AnimationNode
Structure containing an animation node.
◆ sg_bool
Definition at line 23 of file SG.h.
◆ sg_byte
Definition at line 22 of file SG.h.
◆ SG_LoggingCallback
typedef void(* SG_LoggingCallback) (const char *message) |
Callback that will be called by an Engine to output log messages.
- Parameters
-
message | pointer to temporary null terminated string |
Definition at line 86 of file SG.h.
◆ sg_size
Definition at line 21 of file SG.h.
◆ sg_uniqueid
Definition at line 20 of file SG.h.
◆ SG_AnimationNodeType
Enum of animation node types.
Enumerator |
---|
SG_JOINT | |
SG_BLENDSHAPE | |
SG_CONTROL | |
Definition at line 65 of file SG.h.
◆ SG_AudioSampleRate
Enum of audio sample rates.
Enumerator |
---|
SG_AUDIO_8_KHZ | 8 kHz
|
SG_AUDIO_12_KHZ | 12 kHz
|
SG_AUDIO_16_KHZ | 16 kHz
|
SG_AUDIO_24_KHZ | 24 kHz
|
SG_AUDIO_32_KHZ | 32 kHz
|
SG_AUDIO_44_1_KHZ | 44.1 kHz
|
SG_AUDIO_48_KHZ | 48 kHz
|
Definition at line 43 of file SG.h.
◆ SG_AudioSampleType
Enum of audio sample types.
Enumerator |
---|
SG_AUDIO_INT_16 | 16 bit integer
|
SG_AUDIO_INT_32 | 32 bit integer
|
SG_AUDIO_FLOAT_32 | 32 bit float (IEEE 745 single precision binary32)
|
Definition at line 34 of file SG.h.
◆ SG_LoggingLevel
Enum for logging level.
Enumerator |
---|
SG_LOGLEVEL_NONE | No logging enabled, default.
|
SG_LOGLEVEL_ERROR | Only errors will be logged.
|
SG_LOGLEVEL_DEBUG | All information will be logged.
|
Definition at line 56 of file SG.h.
◆ get_audio_sample_rate()
Function to convert SG_AudioSampleRate into an integer.
- Parameters
-
audio_sample_rate | The SG_AudioSampleRate. |
- Returns
- The sample rate as an integer.
Definition at line 93 of file SG.h.