#include <stdio.h>
#include <string.h>
#include <kernel.h>
#include <sifrpc.h>
#include <loadfile.h>
#include <tamtypes.h>
#include <audsrv.h>
Go to the source code of this file.
◆ cdda_stopped()
static void cdda_stopped |
( |
void * |
arg | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file playcdda.c.
38 printf(
"sample: kicking IRXs\n");
40 printf(
"libsd loadmodule %d\n", ret);
42 printf(
"sample: loading audsrv\n");
44 printf(
"audsrv loadmodule %d\n", ret);
49 printf(
"sample: failed to initialize audsrv\n");
54 printf(
"setting callback\n");
58 printf(
"playing track %d\n", track);
70 printf(
"-- track ended before semaphore --\n");
79 printf(
"\rTrack %02d: %02d:%02d:%02d",
80 track,
pos / (75*60), (
pos / 75) % 60,
pos % 75);
86 printf(
"track ended\n");
89 printf(
"sample: ended\n");
const char * audsrv_get_error_string()
int audsrv_on_cdda_stop(audsrv_callback_t cb, void *arg)
int audsrv_play_cd(int track)
int audsrv_get_trackpos()
int SifLoadModule(const char *path, int arg_len, const char *args)
static void nopdelay(void)
static void cdda_stopped(void *arg)
void SifInitRpc(int mode)
References audsrv_get_cdpos(), audsrv_get_error_string(), audsrv_get_trackpos(), audsrv_init(), audsrv_on_cdda_stop(), audsrv_play_cd(), audsrv_quit(), cdda_stopped(), nopdelay(), NULL, pos, SifInitRpc(), SifLoadModule(), and track_ended.
◆ track_ended
volatile int track_ended = 0 |
|
static |