|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <oggvorbis/sndoggvorbis.h>#include <string.h>#include "gp.h"#include <plx/dr.h>#include <plx/prim.h>Functions | |
| static void | snd_hook (int strm, void *obj, int freq, int chn, void **buf, int *req) |
| static void | draw_wave (void) |
| static void * | load_song_list (void *p) |
| static void | draw_listing (void) |
| static void | start (char *fn) |
| static void | stop (void) |
| void | check_controller (void) |
| void | check_inputs (void) |
| void | song_menu_render (void) |
Variables | |
| static mutex_t | mut = MUTEX_INITIALIZER |
| char | curdir [1024] = "/" |
| char | playdir [1024] = "/" |
| char | loadme [256] = "" |
| char | workstring [256] = "" |
| static entry | entries [200] |
| static int | num_entries = 0 |
| static volatile int | load_queued = 0 |
| static int | selected = 0 |
| static int | top = 0 |
| static int | iplaying = 0 |
| static int | framecnt = 0 |
| static float | throb = 0.2f |
| static float | dthrob = 0.01f |
| static int | lst_size = 0 |
| static lst_entry | lst_entries [200] |
| static int | lst_playing = -1 |
| static mutex_t | hookmut = MUTEX_INITIALIZER |
| static int16_t | sndbuffer [2][16384] |
| static int | sndbuffer_cnt = 0 |
| static uint64_t | last_time = 0 |
| static int | takeframes = 0 |
| static int | curpos = 0 |
| static int | filtinitted = 0 |
| void check_controller | ( | void | ) |
References cont_state_t::buttons, CONT_A, CONT_B, CONT_DPAD_DOWN, CONT_DPAD_UP, CONT_Y, curdir, entries, framecnt, iplaying, load_queued, loadme, lst_entries, lst_playing, lst_size, cont_state_t::ltrig, maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, mut, mutex_lock(), mutex_unlock(), num_entries, playdir, printf, cont_state_t::rtrig, selected, start(), stop(), top, and workstring.
Referenced by check_inputs().
| void check_inputs | ( | void | ) |
References check_controller().
Referenced by song_menu_render().
|
static |
References curdir, draw_poly_box(), draw_poly_strf(), draw_wave(), entries, iplaying, lst_entries, lst_playing, lst_size, num_entries, playdir, selected, throb, top, workstring, and y.
Referenced by song_menu_render().
|
static |
References curpos, dr, hookmut, mutex_lock(), mutex_unlock(), sndbuffer, sndbuffer_cnt, takeframes, x, y, and z.
Referenced by draw_listing().
|
static |
References curdir, entries, fs_close(), fs_open(), fs_readdir(), load_queued, mut, mutex_lock(), mutex_unlock(), dirent_t::name, NULL, num_entries, O_DIR, printf, and dirent_t::size.
Referenced by song_menu_render().
|
static |
References curpos, hookmut, last_time, mutex_lock(), mutex_unlock(), obj, sndbuffer, sndbuffer_cnt, takeframes, timer_ms_gettime64(), and uint32_t().
Referenced by song_menu_render().
| void song_menu_render | ( | void | ) |
References check_inputs(), draw_listing(), draw_poly_box(), dthrob, filtinitted, framecnt, load_queued, load_song_list(), mut, mutex_lock(), mutex_unlock(), NULL, num_entries, snd_hook(), snd_stream_filter_add(), thd_create(), and throb.
Referenced by main().
|
static |
Referenced by check_controller(), main(), and main().
|
static |
Referenced by check_controller().
| char curdir[1024] = "/" |
Referenced by check_controller(), draw_listing(), and load_song_list().
|
static |
Referenced by draw_wave(), and snd_hook().
|
static |
Referenced by song_menu_render().
|
static |
Referenced by check_controller(), draw_listing(), load_song_list(), and rtrav().
|
static |
Referenced by song_menu_render().
|
static |
Referenced by check_controller(), and song_menu_render().
|
static |
Referenced by draw_wave(), and snd_hook().
|
static |
Referenced by check_controller(), and draw_listing().
|
static |
Referenced by snd_hook().
|
static |
Referenced by check_controller(), load_song_list(), and song_menu_render().
| char loadme[256] = "" |
Referenced by check_controller().
|
static |
Referenced by check_controller(), and draw_listing().
|
static |
Referenced by check_controller(), and draw_listing().
|
static |
Referenced by check_controller(), and draw_listing().
|
static |
Referenced by check_controller(), load_song_list(), and song_menu_render().
|
static |
Referenced by check_controller(), draw_listing(), load_song_list(), and song_menu_render().
| char playdir[1024] = "/" |
Referenced by check_controller(), and draw_listing().
|
static |
Referenced by check_controller(), and draw_listing().
|
static |
Referenced by draw_wave(), and snd_hook().
|
static |
Referenced by draw_wave(), and snd_hook().
|
static |
Referenced by draw_wave(), and snd_hook().
|
static |
Referenced by draw_listing(), and song_menu_render().
|
static |
| char workstring[256] = "" |
Referenced by check_controller(), and draw_listing().