|
Banjo API 0.0.1
C99 game development API
|

Go to the source code of this file.
Data Structures | |
| struct | bj_audio_properties |
| struct | bj_audio_play_note_data |
Macros | |
| #define | BJ_AUDIO_FORMAT_WIDTH(x) |
| #define | BJ_AUDIO_FORMAT_FLOAT(x) |
| #define | BJ_AUDIO_FORMAT_INT(x) |
| #define | BJ_AUDIO_FORMAT_BIG_ENDIAN(x) |
| #define | BJ_AUDIO_FORMAT_SIGNED(x) |
Typedefs | |
| typedef void(* | bj_audio_callback_fn) (void *buffer, unsigned frames, const struct bj_audio_properties *audio, void *user_data, uint64_t base_sample_index) |
Enumerations | |
| enum | bj_audio_format { BJ_AUDIO_FORMAT_UNKNOWN = 0x0000 , BJ_AUDIO_FORMAT_INT16 = 0x8010 , BJ_AUDIO_FORMAT_F32 = 0x8120 } |
Functions | |
| struct bj_audio_device * | bj_open_audio_device (const struct bj_audio_properties *properties, bj_audio_callback_fn callback, void *callback_user_data, struct bj_error **error) |
| void | bj_close_audio_device (struct bj_audio_device *device) |
| void | bj_play_audio_device (struct bj_audio_device *device) |
| void | bj_pause_audio_device (struct bj_audio_device *device) |
| void | bj_reset_audio_device (struct bj_audio_device *device) |
| void | bj_stop_audio_device (struct bj_audio_device *device) |
| bj_bool | bj_audio_playing (const struct bj_audio_device *device) |
| void | bj_play_audio_note (void *buffer, unsigned frames, const struct bj_audio_properties *audio, void *user_data, uint64_t base_sample_index) |
Basic audio library interface.