KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
songmenu.c File Reference
#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
 

Function Documentation

◆ check_controller()

◆ check_inputs()

void check_inputs ( void )

References check_controller().

Referenced by song_menu_render().

◆ draw_listing()

static void draw_listing ( void )
static

◆ draw_wave()

static void draw_wave ( void )
static

◆ load_song_list()

static void * load_song_list ( void * p)
static

◆ snd_hook()

static void snd_hook ( int strm,
void * obj,
int freq,
int chn,
void ** buf,
int * req )
static

◆ song_menu_render()

◆ start()

static void start ( char * fn)
static

Referenced by check_controller(), main(), and main().

◆ stop()

static void stop ( void )
static

Referenced by check_controller().

Variable Documentation

◆ curdir

char curdir[1024] = "/"

◆ curpos

int curpos = 0
static

Referenced by draw_wave(), and snd_hook().

◆ dthrob

float dthrob = 0.01f
static

Referenced by song_menu_render().

◆ entries

entry entries[200]
static

◆ filtinitted

int filtinitted = 0
static

Referenced by song_menu_render().

◆ framecnt

int framecnt = 0
static

◆ hookmut

mutex_t hookmut = MUTEX_INITIALIZER
static

Referenced by draw_wave(), and snd_hook().

◆ iplaying

int iplaying = 0
static

Referenced by check_controller(), and draw_listing().

◆ last_time

uint64_t last_time = 0
static

Referenced by snd_hook().

◆ load_queued

volatile int load_queued = 0
static

◆ loadme

char loadme[256] = ""

Referenced by check_controller().

◆ lst_entries

lst_entry lst_entries[200]
static

Referenced by check_controller(), and draw_listing().

◆ lst_playing

int lst_playing = -1
static

Referenced by check_controller(), and draw_listing().

◆ lst_size

int lst_size = 0
static

Referenced by check_controller(), and draw_listing().

◆ mut

◆ num_entries

int num_entries = 0
static

◆ playdir

char playdir[1024] = "/"

Referenced by check_controller(), and draw_listing().

◆ selected

int selected = 0
static

Referenced by check_controller(), and draw_listing().

◆ sndbuffer

int16_t sndbuffer[2][16384]
static

Referenced by draw_wave(), and snd_hook().

◆ sndbuffer_cnt

int sndbuffer_cnt = 0
static

Referenced by draw_wave(), and snd_hook().

◆ takeframes

int takeframes = 0
static

Referenced by draw_wave(), and snd_hook().

◆ throb

float throb = 0.2f
static

Referenced by draw_listing(), and song_menu_render().

◆ top

◆ workstring

char workstring[256] = ""

Referenced by check_controller(), and draw_listing().