|
Banjo API 0.0.1
C99 game development API
|
#include <audio.h>
Public Types | |
| enum | { BJ_AUDIO_PLAY_SINE , BJ_AUDIO_PLAY_SQUARE , BJ_AUDIO_PLAY_TRIANGLE , BJ_AUDIO_PLAY_SAWTOOTH } |
Data Fields | |
| enum bj_audio_play_note_data_t:: { ... } | function |
| double | frequency |
| double | phase |
Define parameters for generating simple waveforms.
Used with bj_play_audio_note to synthesize tones such as sine or square.
| anonymous enum |
| double bj_audio_play_note_data_t::frequency |
Frequency of the waveform (Hz).
| enum { ... } bj_audio_play_note_data_t::function |
Type of waveform to generate.
| double bj_audio_play_note_data_t::phase |
Internal phase accumulator.