#include <stdio.h>
#include <stdlib.h>
#include "md.h"
Go to the source code of this file.
Function Documentation
void pd_clear_message |
( |
| ) |
|
int pd_graphics_init |
( |
int |
want_sound, |
|
|
int |
want_pal, |
|
|
int |
hz |
|
) |
| |
Initialize SDL, and the graphics.
- Parameters:
-
want_sound | Nonzero if we want sound. |
want_pal | Nonzero for PAL mode. |
hz | Requested frame rate (between 0 and 1000). |
- Returns:
- Nonzero if successful.
void pd_graphics_palette_update |
( |
| ) |
|
int pd_graphics_reinit |
( |
int |
, |
|
|
int |
want_pal, |
|
|
int |
hz |
|
) |
| |
Reinitialize graphics.
- Parameters:
-
want_pal | Nonzero for PAL mode. |
hz | Requested frame rate (between 0 and 1000). |
- Returns:
- Nonzero if successful.
void pd_graphics_update |
( |
bool |
update | ) |
|
Display screen.
- Parameters:
-
update | False if screen buffer is garbage and must be updated first. |
int pd_handle_events |
( |
md & |
megad | ) |
|
void pd_message |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Write a message to the status bar.
void pd_option |
( |
char |
c, |
|
|
const char * |
|
|
) |
| |
Handle the switches.
- Parameters:
-
void pd_show_carthead |
( |
md & |
megad | ) |
|
Deinitialize sound subsystem.
int pd_sound_init |
( |
long & |
freq, |
|
|
unsigned int & |
samples |
|
) |
| |
Initialize the sound.
- Parameters:
-
| freq | Sound samples rate. |
[in,out] | samples | Minimum buffer size in samples. |
- Returns:
- Nonzero on success.
unsigned int pd_sound_rp |
( |
| ) |
|
Return samples read/write indices in the buffer.
Start/stop audio processing.
unsigned int pd_sound_wp |
( |
| ) |
|
Write contents of sndi to sound.cbuf.
Tells whether DGen stopped intentionally so emulation can resume without skipping frames.
unsigned long pd_usecs |
( |
void |
| ) |
|
Elapsed time in microseconds.
- Returns:
- Microseconds.
Variable Documentation
Enable emulation by default.