Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
sound_chef_bank.h File Reference

Defines a soundbank. More...

#include "sound_chef/sound_chef_common.h"
Include dependency graph for sound_chef_bank.h:

Go to the source code of this file.

Classes

struct  sc_audioChunk
 
struct  sc_riffChunk
 
struct  sc_bank
 

Macros

#define SC_BANK_VERSION   1u
 
#define FOURCC(a, b, c, d)   ((ma_uint32)(((d) << 24) | ((c) << 16) | ((b) << 8) | (a)))
 
#define SC_BANK_ID   (FOURCC('S', 'C', 'B', 'K'))
 
#define SC_BANK_AUDIO_CHUNK_ID   (FOURCC('S', 'C', 'A', 'C'))
 
#define SC_BANK_SUB_ID   (FOURCC('S', 'C', 'F', 'E'))
 

Typedefs

typedef struct sc_bank sc_bank
 
typedef struct sc_subChunk sc_subChunk
 
typedef struct sc_riffChunk sc_riffChunk
 
typedef struct sc_audioChunk sc_audioChunk
 

Enumerations

enum  { SC_BANK_FILE_NAME_BUFFER_SIZE = 64 }
 

Functions

sc_result SC_API sc_bank_init (sc_bank *bank, const char *outputFile, ma_open_mode_flags openFlags)
 
sc_result SC_API sc_bank_uninit (sc_bank *bank)
 
sc_result SC_API sc_bank_build (sc_bank *bank, const char **inputFiles, sc_encoding_format *inputFileFormats, ma_uint32 inputFilesSize)
 
sc_result SC_API sc_bank_read (sc_bank *bank)
 

Detailed Description

Defines a soundbank.

Soundbanks hold a number of audio files within it and can play sounds from it.