|
|
|
|
@ -43,11 +43,11 @@ static const char *const help[] = { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static int init(struct options *options); |
|
|
|
|
static void deinit(); |
|
|
|
|
static void deinit(void); |
|
|
|
|
static void play(void *b, int i); |
|
|
|
|
static void flush(); |
|
|
|
|
static void onpause(); |
|
|
|
|
static void onresume(); |
|
|
|
|
static void flush(void); |
|
|
|
|
static void onpause(void); |
|
|
|
|
static void onresume(void); |
|
|
|
|
|
|
|
|
|
struct sound_driver sound_beos = { |
|
|
|
|
"beos", |
|
|
|
|
@ -64,7 +64,7 @@ struct sound_driver sound_beos = { |
|
|
|
|
/* return minimum number of free bytes in buffer, value may change between
|
|
|
|
|
* two immediately following calls, and the real number of free bytes |
|
|
|
|
* might actually be larger! */ |
|
|
|
|
static int buf_free() |
|
|
|
|
static int buf_free(void) |
|
|
|
|
{ |
|
|
|
|
int free = buf_read_pos - buf_write_pos - chunk_size; |
|
|
|
|
if (free < 0) |
|
|
|
|
@ -75,7 +75,7 @@ static int buf_free() |
|
|
|
|
/* return minimum number of buffered bytes, value may change between
|
|
|
|
|
* two immediately following calls, and the real number of buffered bytes |
|
|
|
|
* might actually be larger! */ |
|
|
|
|
static int buf_used() |
|
|
|
|
static int buf_used(void) |
|
|
|
|
{ |
|
|
|
|
int used = buf_write_pos - buf_read_pos; |
|
|
|
|
if (used < 0) |
|
|
|
|
@ -205,22 +205,22 @@ static void play(void *b, int i) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void deinit() |
|
|
|
|
static void deinit(void) |
|
|
|
|
{ |
|
|
|
|
player->Stop();
|
|
|
|
|
be_app->Lock(); |
|
|
|
|
be_app->Quit(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void flush() |
|
|
|
|
static void flush(void) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void onpause() |
|
|
|
|
static void onpause(void) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void onresume() |
|
|
|
|
static void onresume(void) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|