| Previous | 15994 Revisions | Next |
| r1087 Sunday 7th October, 2007 at 15:40:21 UTC by Nathan Woods |
|---|
| [PC] Introduced audio/pc.h, containing headers removed from pcshare.h |
| [src/mame/machine] | 8042kbdc.c pcshare.c pcshare.h |
| [src/mess/audio] | pc.c pc.h* |
| [src/mess/drivers] | at.c pc.c |
| [src/mess/machine] | amstr_pc.c europc.c ibmpc.c pc.c tandy1t.c |
| r1086 | r1087 | |
|---|---|---|
| 181 | 181 | #include "machine/pit8253.h" |
| 182 | 182 | #include "machine/pcshare.h" |
| 183 | 183 | |
| 184 | #ifdef MESS | |
| 185 | #include "audio/pc.h" | |
| 186 | #endif /* MESS */ | |
| 184 | 187 | |
| 188 | ||
| 189 | ||
| 185 | 190 | /*************************************************************************** |
| 186 | 191 | |
| 187 | 192 | Constants & macros |
| r1086 | r1087 | |
|---|---|---|
| 47 | 47 | |
| 48 | 48 | #include "machine/pc_hdc.h" |
| 49 | 49 | #include "machine/nec765.h" |
| 50 | #include "audio/pc.h" | |
| 50 | 51 | |
| 51 | 52 | #include "mscommon.h" |
| 52 | 53 | #endif /* MESS */ |
| r1086 | r1087 | |
|---|---|---|
| 1 | #include "driver.h" | |
| 2 | 1 | #include "sound/custom.h" |
| 3 | 2 | |
| 4 | 3 | /* flags for init_pc_common */ |
| r1086 | r1087 | |
| 28 | 27 | |
| 29 | 28 | READ32_HANDLER(at_page32_r); |
| 30 | 29 | WRITE32_HANDLER(at_page32_w); |
| 31 | ||
| 32 | /*----------- defined in audio/pc.c -----------*/ | |
| 33 | ||
| 34 | extern struct CustomSound_interface pc_sound_interface; | |
| 35 | void pc_sh_update(void *param, stream_sample_t **inputs, stream_sample_t **outputs, int samples); | |
| 36 | void pc_sh_speaker(int mode); | |
| 37 | ||
| 38 | void pc_sh_speaker_change_clock(double pc_clock); |
| r1086 | r1087 | |
|---|---|---|
| 14 | 14 | #include "streams.h" |
| 15 | 15 | #include "machine/pcshare.h" |
| 16 | 16 | #include "machine/pit8253.h" |
| 17 | #include "audio/pc.h" | |
| 17 | 18 | |
| 18 | 19 | #define SND_LOG(n,m,a) |
| 19 | 20 | #define BASECLOCK 1193180 |
| r1086 | r1087 | |
| 21 | 22 | |
| 22 | 23 | static void *pc_sh_custom_start(int clock, const struct CustomSound_interface *config); |
| 23 | 24 | |
| 24 | struct CustomSound_interface pc_sound_interface = | |
| 25 | const struct CustomSound_interface pc_sound_interface = | |
| 25 | 26 | { |
| 26 | 27 | pc_sh_custom_start |
| 27 | 28 | }; |
| r0 | r1087 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | audio/pc.h | |
| 4 | ||
| 5 | Functions to emulate a PC PIC timer 2 used for simple tone generation | |
| 6 | ||
| 7 | TODO: | |
| 8 | Add support for the SN76496 used in the Tandy1000/PCjr | |
| 9 | It most probably is on port 0xc0, but I'm not sure... | |
| 10 | ||
| 11 | ****************************************************************************/ | |
| 12 | ||
| 13 | #ifndef __AUDIO_PC_H__ | |
| 14 | #define __AUDIO_PC_H__ | |
| 15 | ||
| 16 | #include "driver.h" | |
| 17 | ||
| 18 | extern const struct CustomSound_interface pc_sound_interface; | |
| 19 | void pc_sh_update(void *param, stream_sample_t **inputs, stream_sample_t **outputs, int samples); | |
| 20 | void pc_sh_speaker(int mode); | |
| 21 | ||
| 22 | void pc_sh_speaker_change_clock(double pc_clock); | |
| 23 | ||
| 24 | #endif /* __AUDIO_PC_H__ */ |
| r1086 | r1087 | |
|---|---|---|
| 4 | 4 | #include "machine/pit8253.h" |
| 5 | 5 | #include "video/pc_aga.h" |
| 6 | 6 | #include "mscommon.h" |
| 7 | #include "audio/pc.h" | |
| 7 | 8 | |
| 8 | 9 | /* |
| 9 | 10 |
| r1086 | r1087 | |
|---|---|---|
| 3 | 3 | #include "machine/pcshare.h" |
| 4 | 4 | #include "includes/ibmpc.h" |
| 5 | 5 | #include "memconv.h" |
| 6 | #include "audio/pc.h" | |
| 6 | 7 | |
| 7 | 8 | #define VERBOSE_PIO 0 /* PIO (keyboard controller) */ |
| 8 | 9 |
| r1086 | r1087 | |
|---|---|---|
| 3 | 3 | #include "machine/pckeybrd.h" |
| 4 | 4 | |
| 5 | 5 | #include "machine/pcshare.h" |
| 6 | #include "audio/pc.h" | |
| 6 | 7 | #include "includes/tandy1t.h" |
| 7 | 8 | |
| 8 | 9 |
| r1086 | r1087 | |
|---|---|---|
| 40 | 40 | #include "includes/europc.h" |
| 41 | 41 | #include "includes/ibmpc.h" |
| 42 | 42 | #include "machine/pcshare.h" |
| 43 | #include "audio/pc.h" | |
| 43 | 44 | |
| 44 | 45 | #include "includes/pc.h" |
| 45 | 46 | #include "mscommon.h" |
| r1086 | r1087 | |
|---|---|---|
| 6 | 6 | #include "includes/pclpt.h" |
| 7 | 7 | #include "video/pc_vga.h" |
| 8 | 8 | #include "memconv.h" |
| 9 | #include "audio/pc.h" | |
| 9 | 10 | |
| 11 | ||
| 10 | 12 | /* pc20 (v2) |
| 11 | 13 | fc078 |
| 12 | 14 | fc102 color/mono selection |
| r1086 | r1087 | |
|---|---|---|
| 34 | 34 | #include "includes/ps2.h" |
| 35 | 35 | |
| 36 | 36 | #include "machine/pcshare.h" |
| 37 | #include "audio/pc.h" | |
| 37 | 38 | |
| 38 | 39 | #include "devices/mflopimg.h" |
| 39 | 40 | #include "devices/harddriv.h" |
| r1086 | r1087 | |
|---|---|---|
| 46 | 46 | #include "includes/ibmpc.h" |
| 47 | 47 | |
| 48 | 48 | #include "machine/pcshare.h" |
| 49 | #include "audio/pc.h" | |
| 49 | 50 | #include "includes/pc.h" |
| 50 | 51 | |
| 51 | 52 | #include "machine/pc_hdc.h" |
| Previous | 15994 Revisions | Next |