#include "Buzz_inc.h"
#include "externs.h"
#include "assert.h"
#include "pace.h"
#include "av.h"
#include "options.h"
#include "utils.h"
#include "logging.h"
Go to the source code of this file.
Defines | |
#define | debug_file stdout |
Functions | |
int | AquireDrive (void) |
char | DoModem (int sel) |
void | frm_read_tbl (char *keyname, struct tblinfo *tbl) |
Read sequence name array from file. | |
int | getch (void) |
void | idle_loop (int ticks) |
wait a number of ticks | |
void | idle_loop_secs (double secs) |
do nothing for a few seconds. | |
void | KillVoice (void) |
void | LMove (void *p) |
ssize_t | load_audio_file (const char *name, char **data, size_t *size) |
LOG_DEFAULT_CATEGORY (LOG_ROOT_CAT) | |
void | MesCenter (void) |
char | MPrefs (char mode) |
void | NGetVoice (char plr, char val) |
void | OpenEmUp (void) |
void | play_audio (int sidx, int mode) |
void | PlayAudio (char *name, char mode) |
void | PlayVoice (void) |
int | put_serial (unsigned char n) |
void | randomize (void) |
char * | seq_filename (int seq, int mode) |
Get sequence filename by sequence number. | |
void | seq_init (void) |
Initialize the sequence keymaps. | |
void | SMove (void *p, int x, int y) |
void | StopVoice (void) |
Variables | |
static struct tblinfo | frm_ftbl |
Mapping from failure sequence numbers to audio/video filenames. | |
static struct tblinfo | frm_tbl |
Mapping from success sequence numbers to audio/video filenames. | |
char * | letter_dat |
struct Prest_Upd | MP [3] |
struct audio_chunk | news_chunk |
char * | soundbuf |
size_t | soundbuf_size = 0 |
size_t | soundbuf_used = 0 |
GXHEADER | vhptr |
long | VoiceOff |
char DoModem | ( | int | sel | ) |
void frm_read_tbl | ( | char * | keyname, | |
struct tblinfo * | tbl | |||
) |
Read sequence name array from file.
keyname | Name of the file to read from | |
tblinfo | Pointer to the tblinfo to fill |
Definition at line 274 of file pace.c.
References DEBUG4, fin, name, sOpen(), WARNING2, xcalloc(), xrealloc(), and xstrdup().
Referenced by seq_init().
int getch | ( | void | ) |
void idle_loop | ( | int | ticks | ) |
wait a number of ticks
ticks | Number of ticks to wait. |
Definition at line 416 of file pace.c.
Referenced by PlaySequence().
void idle_loop_secs | ( | double | secs | ) |
do nothing for a few seconds.
The function will wait a number of seconds but will call av_block() in the meantime.
secs | Number of seconds to wait. |
Definition at line 395 of file pace.c.
Referenced by idle_loop(), News(), PlayNewsAnim(), PlaySequence(), and Replay().
ssize_t load_audio_file | ( | const char * | name, | |
char ** | data, | |||
size_t * | size | |||
) |
Definition at line 429 of file pace.c.
Referenced by music_load(), NGetVoice(), play_audio(), and PlayAudio().
LOG_DEFAULT_CATEGORY | ( | LOG_ROOT_CAT | ) |
char MPrefs | ( | char | mode | ) |
void play_audio | ( | int | sidx, | |
int | mode | |||
) |
void PlayAudio | ( | char * | name, | |
char | mode | |||
) |
char* seq_filename | ( | int | seq, | |
int | mode | |||
) |
Get sequence filename by sequence number.
seq | Index number of sequence | |
mode | 0=success, other is failure |
name of the sequence file as string
Definition at line 343 of file pace.c.
Referenced by AbzFrame(), play_audio(), PlaySequence(), and Replay().
Initialize the sequence keymaps.
Reads success and failure sequences
Definition at line 327 of file pace.c.
References frm_ftbl, frm_read_tbl(), and frm_tbl.
Referenced by OpenEmUp().
struct tblinfo frm_ftbl [static] |
Mapping from failure sequence numbers to audio/video filenames.
Definition at line 320 of file pace.c.
Referenced by seq_filename(), and seq_init().
struct tblinfo frm_tbl [static] |
Mapping from success sequence numbers to audio/video filenames.
Definition at line 317 of file pace.c.
Referenced by seq_filename(), and seq_init().
char* letter_dat |
struct audio_chunk news_chunk |
char* soundbuf |
size_t soundbuf_size = 0 |
size_t soundbuf_used = 0 |