New portio.c module following the virmem.c dispatch-by-address pattern, emulating 8253 PIT channel 2 (speaker frequency), PPI port B (speaker on/off), CGA mode/color select registers, game port (joystick stub), COM1 serial (transmitter-ready stub), and floating bus default (0xFF). OUT/WAIT/MOTOR statements and INP()/STICK()/STRIG() functions now fully functional. Continuous tone generation via PulseAudio pthread worker for programs that drive the speaker through OUT &H43/&H42/&H61.
15 lines
341 B
C
15 lines
341 B
C
#ifndef GW_SOUND_H
|
|
#define GW_SOUND_H
|
|
|
|
void snd_init(void);
|
|
void snd_shutdown(void);
|
|
void snd_reset(void);
|
|
void snd_beep(void);
|
|
void snd_tone(int freq_hz, int duration_ticks);
|
|
void snd_tone_sync(int freq_hz, int duration_ticks);
|
|
void snd_play(const char *mml);
|
|
void snd_start_continuous(int freq_hz);
|
|
void snd_stop_continuous(void);
|
|
|
|
#endif
|