Bedtime. /All functions

All functions

145 declared in tapp_api.h; 57 carry documentation, 88 do not yet.

float* mixer_get_in(mixer_t* m) undocumented
float* mixer_get_out(mixer_t* m) undocumented
float* mixer_get_fx(mixer_t* m) undocumented
uint32_t mixer_get_fs(mixer_t* m) undocumented
void gfx_draw_pixel(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y) undocumented
void gfx_draw_hline(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w) undocumented
void gfx_draw_vline(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t h) undocumented
void gfx_draw_hvline(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t len, uint8_t dir) undocumented
void gfx_draw_line(gfx_t* gfx, gfx_uint_t x1, gfx_uint_t y1, gfx_uint_t x2, gfx_uint_t y2) undocumented
void gfx_draw_line_thick(gfx_t* gfx, gfx_uint_t x1, gfx_uint_t y1, gfx_uint_t x2, gfx_uint_t y2, uint8_t thickness) undocumented
void gfx_draw_bezier(gfx_t* gfx, gfx_uint_t x0, gfx_uint_t y0, gfx_uint_t x1, gfx_uint_t y1, gfx_uint_t x2, gfx_uint_t y2) undocumented
void gfx_draw_rect(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h) undocumented
void gfx_draw_rect_r(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, gfx_uint_t r) undocumented
void gfx_draw_rect_fill(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h) undocumented
void gfx_draw_rect_fill_r(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, gfx_uint_t r) undocumented
void gfx_fill_rect_dithered(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, uint8_t shade) undocumented
void gfx_draw_hline_dithered(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, uint8_t shade) undocumented
void gfx_draw_vline_dithered(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t h, uint8_t shade) undocumented
void gfx_fill_circle_dithered(gfx_t* gfx, gfx_uint_t cx, gfx_uint_t cy, gfx_uint_t r, uint8_t shade) undocumented
void gfx_fill_rect_r_dithered(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, gfx_uint_t r, uint8_t shade) undocumented
void gfx_fill_rect_gradient_v_dithered_bayer(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, uint8_t shade_top, uint8_t shade_bottom) undocumented
void gfx_fill_rect_gradient_h_dithered_bayer(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, uint8_t shade_left, uint8_t shade_right) undocumented
void gfx_draw_circle(gfx_t* gfx, gfx_uint_t x0, gfx_uint_t y0, gfx_uint_t r, uint8_t opt) undocumented
void gfx_draw_disc(gfx_t* gfx, gfx_uint_t x0, gfx_uint_t y0, gfx_uint_t r, uint8_t opt) undocumented
void gfx_draw_circle_dotted(gfx_t* gfx, gfx_uint_t x0, gfx_uint_t y0, gfx_uint_t r, uint8_t opt) undocumented
void gfx_set_color(gfx_t* gfx, uint8_t color) undocumented
gfx_uint_t gfx_draw_str(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, const char* str) undocumented
gfx_uint_t gfx_draw_strf(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, const char* fmt, ...) undocumented
void gfx_draw_glyph(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, uint16_t encoding) undocumented
void gfx_set_font(gfx_t* gfx, const uint8_t* font) undocumented
gfx_uint_t gfx_get_str_width(gfx_t* gfx, const char* str) undocumented
void gfx_draw_xbm(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, const uint8_t* bitmap) undocumented
void gfx_draw_xbm_rotated(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, gfx_uint_t w, gfx_uint_t h, const uint8_t* bitmap, float angle) undocumented
void gfx_draw_xbm_scaled(gfx_t* gfx, gfx_uint_t x, gfx_uint_t y, const uint8_t* bitmap, gfx_uint_t w, gfx_uint_t h, gfx_uint_t scale) undocumented
void gfx_set_clip(gfx_t* gfx, gfx_uint_t x0, gfx_uint_t y0, gfx_uint_t x1, gfx_uint_t y1) undocumented
void gfx_clip_reset(gfx_t* gfx) undocumented
void ui_draw_img(gfx_t* gfx, uint16_t x, uint16_t y, const gfx_img_t* img) undocumented
void ui_draw_anim(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t frame, const gfx_img_t* img) undocumented
void ui_draw_img_scaled(gfx_t* gfx, uint16_t x, uint16_t y, const gfx_img_t* img, uint_fast8_t scale) undocumented
void ui_draw_version_tag(gfx_t* gfx, uint16_t x, uint16_t y, const char* str) undocumented
void ui_draw_qrcode(gfx_t* restrict gfx, uint16_t x, uint16_t y, uint16_t size, const uint8_t* qr) undocumented
void ui_draw_time_entry(gfx_t* gfx, uint16_t x, uint16_t y, float len, uint16_t idx_l) undocumented
bool ui_ease_position(uint16_t* pos, uint16_t target) undocumented
bool ui_ease_position_mod(uint16_t* pos, uint16_t target, float mod) undocumented
void ui_draw_scrollbar(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t height, uint16_t pos, uint16_t total) undocumented
void ui_draw_on_circle(gfx_t* gfx, uint16_t x, uint16_t y, float value, uint_fast8_t scale, uint_fast8_t size) undocumented
void ui_draw_frame(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, bool active) undocumented
void ui_draw_action(gfx_t* gfx, uint16_t x, uint16_t y, bool hold, const char* name) undocumented
uint16_t ui_draw_action_act(gfx_t* gfx, uint16_t x, uint16_t y, bool hold, const char* name, bool active, bool tall) undocumented
void ui_draw_leet_text(gfx_t* gfx, uint_fast8_t x, uint_fast8_t y, uint16_t count, const char* text) undocumented
void ui_draw_noise_zone(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint_fast8_t pixel_size) undocumented
void ui_draw_buffer_dots(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t width, uint16_t height, const float* buffer, size_t size) undocumented
void ui_string_upper(const char* original_str, char* uppper, int8_t len) undocumented
void ui_string_lower(const char* original_str, char* upper, int8_t len) undocumented
void ui_draw_frame_wback(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t r, bool active) undocumented
void ui_draw_value_bar(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint32_t val, uint32_t min, uint32_t max) undocumented
void ui_draw_value_bar_smallf(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, float val, float min, float max) undocumented
void ui_draw_battery(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t charge, bool charging) undocumented
void ui_draw_3layer_box(gfx_t* restrict gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t round) undocumented
void ui_draw_icon_centered(gfx_t* restrict gfx, uint16_t x, uint16_t y, const gfx_img_t* icon) undocumented
uint16_t ui_draw_text_centered_with_icon(gfx_t* restrict gfx, uint16_t y, const char* text, const gfx_img_t* icon) undocumented
void ui_format_time(char* restrict buff, uint32_t size, float val, TimeFormatStyle style) undocumented
void ui_draw_shade_pattern(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint_fast8_t shade, uint_fast8_t scale) undocumented
void ui_draw_volume_mono(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t width, uint16_t height, const float* values, bool frame) undocumented
void ui_draw_volume_stereo(gfx_t* gfx, uint16_t x, uint16_t y, uint16_t width, uint16_t height, const float* values, bool frame) undocumented
uint32_t ui_draw_str_multi_line(gfx_t* restrict gfx, const char *str, uint_fast8_t max_chr_per_line, uint32_t x, uint32_t y) undocumented
uint32_t ui_count_string_lines(const char* str, uint_fast8_t max_chr_per_line) undocumented
void ui_draw_dialogue_multiline_string(gfx_t* restrict gfx, uint_fast8_t x, uint_fast8_t y, uint16_t count, uint16_t max_chars_per_line, const char* restrict text) undocumented
void ui_draw_dialogue(gfx_t* restrict gfx, uint16_t x, uint16_t y, uint16_t width, uint16_t height) undocumented
void ui_draw_button(gfx_t* restrict gfx, const uint16_t x, const uint16_t y, const uint16_t w, const char* text, const gfx_img_t* icon, const bool pressed) undocumented
void ui_draw_button_inverted(gfx_t* restrict gfx, const uint16_t x, const uint16_t y, const uint16_t w, const char* text, const gfx_img_t* icon, const bool pressed) undocumented
void ui_draw_tape_speed(gfx_t* gfx, const uint16_t x, const uint16_t y, const float speed, float progress) undocumented
void ui_draw_switch(gfx_t* restrict gfx, uint16_t x, uint16_t y, bool val, bool detailed) undocumented
void* os_malloc(size_t size)
void os_free(void* ptr)
uint32_t ui_get_frame(gfx_t* gfx)
void os_app_exit(void)
void os_app_close(os_app_t* app)
void* os_app_get_model(const os_app_t* app)
bool browser_open(const char* start_path, const char* file_extension, browser_callback_t callback)
uint32_t storage_read_file(const char* path, void* buffer, size_t buffer_size)
uint32_t storage_write_file(const char* path, const void* buffer, size_t size)
uint32_t storage_append_file(const char* path, const void* buffer, size_t size)
bool storage_delete_file(const char* path)
bool storage_mkdir(const char* path)
bool storage_file_exists(const char* path)
uint32_t storage_file_size(const char* path)
uint32_t isqrt(uint32_t n)
int16_t isin(uint16_t angle)
int16_t icos(uint16_t angle)
ui_menu_t* ui_menu_create(void* app_ctx, ui_menu_sub_cb root_builder)
void ui_menu_destroy(ui_menu_t* menu)
void ui_menu_add(ui_menu_t* menu, ui_menu_node_t entry)
void* ui_menu_ctx(ui_menu_t* menu)
void ui_menu_rebuild(ui_menu_t* menu)
void ui_menu_input(ui_menu_t* menu, uint8_t button_id, KeyStateEnum state)
void ui_menu_show(ui_menu_t* menu)
void ui_menu_hide(ui_menu_t* menu)
bool ui_menu_is_visible(ui_menu_t* menu)
void ui_menu_set_type(ui_menu_t* menu, MenuTypeEnum type) undocumented
void ui_menu_set_close_cb(ui_menu_t* menu, ui_menu_close_callback close_cb) undocumented
void ui_menu_set_redraw_cb(ui_menu_t* menu, ui_menu_redraw_cb redraw) undocumented
void ui_menu_set_header(ui_menu_t* menu, bool enable) undocumented
void ui_menu_set_visible(ui_menu_t* menu, uint16_t count) undocumented
void ui_menu_set_name(ui_menu_t* menu, const char* name) undocumented
void ui_menu_set_pos(ui_menu_t* menu, uint16_t x, uint16_t y) undocumented
void ui_menu_set_width(ui_menu_t* menu, uint16_t w) undocumented
void ui_menu_gfx_redraw(gfx_t* gfx, ui_menu_t* menu) undocumented
MenuTypeEnum ui_menu_type(ui_menu_t* menu) undocumented
bool ui_menu_is_editing(ui_menu_t* menu) undocumented
bool ui_menu_loading(ui_menu_t* menu) undocumented
void ui_menu_pop(ui_menu_t* menu) undocumented
void ui_menu_entry_enter(ui_menu_t* menu, ui_menu_node_t* entry) undocumented
void ui_menu_set_wait(ui_menu_t* menu) undocumented
void ui_hints_set_labels(const tapp_hint_pair_t* labels)
void ui_hints_show(bool stat)
void ui_statusbar_show(bool state)
void* engine_get_ctx(engine_t* engine)
void engine_set_callbacks(os_app_t* app, void* cb_ctx)
void engine_set_active(bool state)
void engine_clear_callbacks(const engine_callbacks_t* cb)
int32_t os_controls_encoder_get_delta(void)
tape_t* tape_get(void)
tape_state_t tape_get_state(const tape_t* tape)
bool tape_is_idle(const tape_t* tape)
uint32_t tape_size(const tape_t* tape)
tape_rec_t* tape_rec_begin(tape_t* tape, uint32_t pos, bool reverse)
uint32_t tape_rec_commit(tape_rec_t* rec, uint32_t end_pos)
void tape_rec_abort(tape_rec_t* rec)
bool tape_rec_undo_available(const tape_t* tape)
bool tape_rec_undo_execute(tape_t* tape)
uint32_t tape_marks_count(const tape_t* tape)
bool tape_marks_get(const tape_t* tape, uint32_t idx, uint32_t* start_frame, uint32_t* end_frame)
uint32_t tape_read(const tape_t* tape, uint32_t pos_frame, float* dst, uint32_t n_frames)
uint32_t tape_write(tape_t* tape, uint32_t pos_frame, const float* src, uint32_t n_frames)
uint32_t tape_get_position(const tape_t* tape)
void tape_timeline_show(bool state)
void tape_timeline_show_time_display(bool state)
void tape_timeline_setup(uint8_t tracks, int_fast16_t x, int_fast16_t y, uint_fast16_t w, uint_fast16_t h)
void tape_timeline_zoom_out(void)
void tape_timeline_zoom_in(void)
void tape_timeline_zoom_out_to_loop(void)
void tape_timeline_set_loop(bool state)
void tape_timeline_switch_track(uint8_t tr)
void tape_timeline_attach_default(uint8_t tracks)