trunk/src/emu/sound/namco.c
| r29526 | r29527 | |
| 44 | 44 | m_stream(NULL), |
| 45 | 45 | m_namco_clock(0), |
| 46 | 46 | m_sample_rate(0), |
| 47 | | m_f_fracbits(0) |
| 47 | m_f_fracbits(0), |
| 48 | m_voices(0), |
| 49 | m_stereo(0) |
| 48 | 50 | { |
| 49 | 51 | } |
| 50 | 52 | |
| r29526 | r29527 | |
| 65 | 67 | |
| 66 | 68 | |
| 67 | 69 | //------------------------------------------------- |
| 68 | | // device_config_complete - perform any |
| 69 | | // operations now that the configuration is |
| 70 | | // complete |
| 71 | | //------------------------------------------------- |
| 72 | | |
| 73 | | void namco_audio_device::device_config_complete() |
| 74 | | { |
| 75 | | // inherit a copy of the static data |
| 76 | | const namco_interface *intf = reinterpret_cast<const namco_interface *>(static_config()); |
| 77 | | if (intf != NULL) |
| 78 | | *static_cast<namco_interface *>(this) = *intf; |
| 79 | | |
| 80 | | // or initialize to defaults if none provided |
| 81 | | else |
| 82 | | { |
| 83 | | m_voices = 0; |
| 84 | | m_stereo = 0; |
| 85 | | } |
| 86 | | } |
| 87 | | |
| 88 | | //------------------------------------------------- |
| 89 | 70 | // device_start - device-specific startup |
| 90 | 71 | //------------------------------------------------- |
| 91 | 72 | |
trunk/src/emu/sound/namco.h
| r29526 | r29527 | |
| 8 | 8 | |
| 9 | 9 | #define MAX_VOLUME 16 |
| 10 | 10 | |
| 11 | | struct namco_interface |
| 12 | | { |
| 13 | | int m_voices; /* number of voices */ |
| 14 | | int m_stereo; /* set to 1 to indicate stereo (e.g., System 1) */ |
| 15 | | }; |
| 16 | 11 | |
| 12 | #define MCFG_NAMCO_AUDIO_VOICES(_voices) \ |
| 13 | namco_audio_device::set_voices(*device, _voices); |
| 14 | |
| 15 | #define MCFG_NAMCO_AUDIO_STEREO(_stereo) \ |
| 16 | namco_audio_device::set_stereo(*device, _stereo); |
| 17 | |
| 18 | |
| 17 | 19 | /* this structure defines the parameters for a channel */ |
| 18 | 20 | struct sound_channel |
| 19 | 21 | { |
| r29526 | r29527 | |
| 29 | 31 | }; |
| 30 | 32 | |
| 31 | 33 | class namco_audio_device : public device_t, |
| 32 | | public device_sound_interface, |
| 33 | | public namco_interface |
| 34 | public device_sound_interface |
| 34 | 35 | { |
| 35 | 36 | public: |
| 36 | 37 | namco_audio_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); |
| 37 | 38 | ~namco_audio_device() {} |
| 38 | 39 | |
| 39 | | protected: |
| 40 | // static configuration |
| 41 | static void set_voices(device_t &device, int voices) { downcast<namco_audio_device &>(device).m_voices = voices; } |
| 42 | static void set_stereo(device_t &device, int stereo) { downcast<namco_audio_device &>(device).m_stereo = stereo; } |
| 43 | |
| 44 | protected: |
| 40 | 45 | // device-level overrides |
| 41 | | virtual void device_config_complete(); |
| 42 | 46 | virtual void device_start(); |
| 43 | 47 | |
| 44 | 48 | // internal state |
| r29526 | r29527 | |
| 61 | 65 | int m_sample_rate; |
| 62 | 66 | int m_f_fracbits; |
| 63 | 67 | |
| 68 | int m_voices; /* number of voices */ |
| 69 | int m_stereo; /* set to 1 to indicate stereo (e.g., System 1) */ |
| 70 | |
| 64 | 71 | /* decoded waveform table */ |
| 65 | 72 | INT16 *m_waveform[MAX_VOLUME]; |
| 66 | 73 | |
trunk/src/mame/drivers/20pacgal.c
| r29526 | r29527 | |
| 121 | 121 | |
| 122 | 122 | /************************************* |
| 123 | 123 | * |
| 124 | | * Audio |
| 125 | | * |
| 126 | | *************************************/ |
| 127 | | |
| 128 | | static const namco_interface namco_config = |
| 129 | | { |
| 130 | | 3, /* number of voices */ |
| 131 | | 0 /* stereo */ |
| 132 | | }; |
| 133 | | |
| 134 | | |
| 135 | | |
| 136 | | /************************************* |
| 137 | | * |
| 138 | 124 | * Coin counter |
| 139 | 125 | * |
| 140 | 126 | *************************************/ |
| r29526 | r29527 | |
| 408 | 394 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 409 | 395 | |
| 410 | 396 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, NAMCO_AUDIO_CLOCK) |
| 411 | | MCFG_SOUND_CONFIG(namco_config) |
| 397 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 412 | 398 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 413 | 399 | |
| 414 | 400 | MCFG_DAC_ADD("dac") |
trunk/src/mame/drivers/gaplus.c
| r29526 | r29527 | |
| 467 | 467 | GFXDECODE_ENTRY( "gfx2", 0x0000, spritelayout, 64*4, 64 ) |
| 468 | 468 | GFXDECODE_END |
| 469 | 469 | |
| 470 | | static const namco_interface namco_config = |
| 471 | | { |
| 472 | | 8, /* number of voices */ |
| 473 | | 0 /* stereo */ |
| 474 | | }; |
| 475 | | |
| 476 | 470 | static const char *const gaplus_sample_names[] = |
| 477 | 471 | { |
| 478 | 472 | "*gaplus", |
| r29526 | r29527 | |
| 583 | 577 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 584 | 578 | |
| 585 | 579 | MCFG_SOUND_ADD("namco", NAMCO_15XX, 24576000/1024) |
| 586 | | MCFG_SOUND_CONFIG(namco_config) |
| 580 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 587 | 581 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 588 | 582 | |
| 589 | 583 | MCFG_SAMPLES_ADD("samples", gaplus_samples_interface) |
trunk/src/mame/drivers/pengo.c
| r29526 | r29527 | |
| 346 | 346 | GFXDECODE_END |
| 347 | 347 | |
| 348 | 348 | |
| 349 | | |
| 350 | 349 | /************************************* |
| 351 | 350 | * |
| 352 | | * Sound interfaces |
| 353 | | * |
| 354 | | *************************************/ |
| 355 | | |
| 356 | | static const namco_interface namco_config = |
| 357 | | { |
| 358 | | 3, /* number of voices */ |
| 359 | | 0 /* stereo */ |
| 360 | | }; |
| 361 | | |
| 362 | | |
| 363 | | |
| 364 | | /************************************* |
| 365 | | * |
| 366 | 351 | * Machine drivers |
| 367 | 352 | * |
| 368 | 353 | *************************************/ |
| r29526 | r29527 | |
| 398 | 383 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 399 | 384 | |
| 400 | 385 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) |
| 401 | | MCFG_SOUND_CONFIG(namco_config) |
| 386 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 402 | 387 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 403 | 388 | MACHINE_CONFIG_END |
| 404 | 389 | |
trunk/src/mame/drivers/tceptor.c
| r29526 | r29527 | |
| 323 | 323 | |
| 324 | 324 | /*******************************************************************/ |
| 325 | 325 | |
| 326 | | static const namco_interface namco_config = |
| 327 | | { |
| 328 | | 8, /* number of voices */ |
| 329 | | 1 /* stereo */ |
| 330 | | }; |
| 331 | | |
| 332 | | |
| 333 | | /*******************************************************************/ |
| 334 | | |
| 335 | 326 | void tceptor_state::machine_start() |
| 336 | 327 | { |
| 337 | 328 | save_item(NAME(m_m6809_irq_enable)); |
| r29526 | r29527 | |
| 424 | 415 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) |
| 425 | 416 | |
| 426 | 417 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, 49152000/2048) |
| 427 | | MCFG_SOUND_CONFIG(namco_config) |
| 418 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 419 | MCFG_NAMCO_AUDIO_STEREO(1) |
| 428 | 420 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.40) |
| 429 | 421 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.40) |
| 430 | 422 | |
trunk/src/mame/drivers/namcos1.c
| r29526 | r29527 | |
| 1056 | 1056 | |
| 1057 | 1057 | |
| 1058 | 1058 | |
| 1059 | | static const namco_interface namco_config = |
| 1060 | | { |
| 1061 | | 8, /* number of voices */ |
| 1062 | | 1 /* stereo */ |
| 1063 | | }; |
| 1064 | | |
| 1065 | 1059 | /* |
| 1066 | 1060 | namcos1 has two 8bit dac channel. But They are mixed before pre-amp. |
| 1067 | 1061 | And,they are connected with pre-amp through active LPF. |
| r29526 | r29527 | |
| 1115 | 1109 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) |
| 1116 | 1110 | |
| 1117 | 1111 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, XTAL_49_152MHz/2048/2) |
| 1118 | | MCFG_SOUND_CONFIG(namco_config) |
| 1112 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 1113 | MCFG_NAMCO_AUDIO_STEREO(1) |
| 1119 | 1114 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) |
| 1120 | 1115 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) |
| 1121 | 1116 | |
trunk/src/mame/drivers/rallyx.c
| r29526 | r29527 | |
| 797 | 797 | * |
| 798 | 798 | *************************************/ |
| 799 | 799 | |
| 800 | | static const namco_interface namco_config = |
| 801 | | { |
| 802 | | 3, /* number of voices */ |
| 803 | | 0 /* stereo */ |
| 804 | | }; |
| 805 | | |
| 806 | 800 | static const char *const rallyx_sample_names[] = |
| 807 | 801 | { |
| 808 | 802 | "*rallyx", |
| r29526 | r29527 | |
| 880 | 874 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 881 | 875 | |
| 882 | 876 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) /* 96 KHz */ |
| 883 | | MCFG_SOUND_CONFIG(namco_config) |
| 877 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 884 | 878 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 885 | 879 | |
| 886 | 880 | MCFG_SAMPLES_ADD("samples", rallyx_samples_interface) |
trunk/src/mame/drivers/toypop.c
| r29526 | r29527 | |
| 473 | 473 | GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 128*4, 64 ) |
| 474 | 474 | GFXDECODE_END |
| 475 | 475 | |
| 476 | | |
| 477 | | |
| 478 | | static const namco_interface namco_config = |
| 479 | | { |
| 480 | | 8, /* number of voices */ |
| 481 | | 0 /* stereo */ |
| 482 | | }; |
| 483 | | |
| 484 | | |
| 485 | 476 | /*************************************************************************** |
| 486 | 477 | |
| 487 | 478 | Custom I/O initialization |
| r29526 | r29527 | |
| 563 | 554 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 564 | 555 | |
| 565 | 556 | MCFG_SOUND_ADD("namco", NAMCO_15XX, 24000) |
| 566 | | MCFG_SOUND_CONFIG(namco_config) |
| 557 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 567 | 558 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 568 | 559 | MACHINE_CONFIG_END |
| 569 | 560 | |
trunk/src/mame/drivers/skykid.c
| r29526 | r29527 | |
| 415 | 415 | GFXDECODE_END |
| 416 | 416 | |
| 417 | 417 | |
| 418 | | |
| 419 | | static const namco_interface namco_config = |
| 420 | | { |
| 421 | | 8, /* number of voices */ |
| 422 | | 0 /* stereo */ |
| 423 | | }; |
| 424 | | |
| 425 | 418 | INTERRUPT_GEN_MEMBER(skykid_state::main_vblank_irq) |
| 426 | 419 | { |
| 427 | 420 | if(m_main_irq_mask) |
| r29526 | r29527 | |
| 469 | 462 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 470 | 463 | |
| 471 | 464 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, 49152000/2048) |
| 472 | | MCFG_SOUND_CONFIG(namco_config) |
| 465 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 473 | 466 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 474 | 467 | MACHINE_CONFIG_END |
| 475 | 468 | |
trunk/src/mame/drivers/mappy.c
| r29526 | r29527 | |
| 1595 | 1595 | GFXDECODE_END |
| 1596 | 1596 | |
| 1597 | 1597 | |
| 1598 | | |
| 1599 | 1598 | /*************************************************************************** |
| 1600 | 1599 | |
| 1601 | | Sound interface |
| 1602 | | |
| 1603 | | ***************************************************************************/ |
| 1604 | | |
| 1605 | | static const namco_interface namco_config = |
| 1606 | | { |
| 1607 | | 8, /* number of voices */ |
| 1608 | | 0 /* stereo */ |
| 1609 | | }; |
| 1610 | | |
| 1611 | | |
| 1612 | | /*************************************************************************** |
| 1613 | | |
| 1614 | 1600 | Custom I/O initialization |
| 1615 | 1601 | |
| 1616 | 1602 | ***************************************************************************/ |
| r29526 | r29527 | |
| 1709 | 1695 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1710 | 1696 | |
| 1711 | 1697 | MCFG_SOUND_ADD("namco", NAMCO_15XX, 18432000/768) |
| 1712 | | MCFG_SOUND_CONFIG(namco_config) |
| 1698 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 1713 | 1699 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1714 | 1700 | MACHINE_CONFIG_END |
| 1715 | 1701 | |
| r29526 | r29527 | |
| 1832 | 1818 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1833 | 1819 | |
| 1834 | 1820 | MCFG_SOUND_ADD("namco", NAMCO_15XX, 18432000/768) |
| 1835 | | MCFG_SOUND_CONFIG(namco_config) |
| 1821 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 1836 | 1822 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1837 | 1823 | MACHINE_CONFIG_END |
| 1838 | 1824 | |
| r29526 | r29527 | |
| 1871 | 1857 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1872 | 1858 | |
| 1873 | 1859 | MCFG_SOUND_ADD("namco", NAMCO_15XX, 18432000/768) |
| 1874 | | MCFG_SOUND_CONFIG(namco_config) |
| 1860 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 1875 | 1861 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1876 | 1862 | MACHINE_CONFIG_END |
| 1877 | 1863 | |
trunk/src/mame/drivers/namcos86.c
| r29526 | r29527 | |
| 979 | 979 | |
| 980 | 980 | /*******************************************************************/ |
| 981 | 981 | |
| 982 | | static const namco_interface namco_config = |
| 983 | | { |
| 984 | | 8, /* number of voices */ |
| 985 | | 0 /* stereo */ |
| 986 | | }; |
| 987 | | |
| 988 | | |
| 989 | 982 | static MACHINE_CONFIG_START( hopmappy, namcos86_state ) |
| 990 | 983 | |
| 991 | 984 | /* basic machine hardware */ |
| r29526 | r29527 | |
| 1024 | 1017 | MCFG_SOUND_ROUTE(1, "mono", 0.60) /* only right channel is connected */ |
| 1025 | 1018 | |
| 1026 | 1019 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, XTAL_49_152MHz/2048) |
| 1027 | | MCFG_SOUND_CONFIG(namco_config) |
| 1020 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 1028 | 1021 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1029 | 1022 | MACHINE_CONFIG_END |
| 1030 | 1023 | |
trunk/src/mame/drivers/polepos.c
| r29526 | r29527 | |
| 823 | 823 | |
| 824 | 824 | |
| 825 | 825 | /********************************************************************* |
| 826 | | * Sound interfaces |
| 827 | | *********************************************************************/ |
| 828 | | |
| 829 | | static const namco_interface namco_config = |
| 830 | | { |
| 831 | | 8, /* number of voices */ |
| 832 | | 1 /* stereo */ |
| 833 | | }; |
| 834 | | |
| 835 | | |
| 836 | | /********************************************************************* |
| 837 | 826 | * Machine driver |
| 838 | 827 | *********************************************************************/ |
| 839 | 828 | |
| r29526 | r29527 | |
| 911 | 900 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 912 | 901 | |
| 913 | 902 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/512) |
| 914 | | MCFG_SOUND_CONFIG(namco_config) |
| 903 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 904 | MCFG_NAMCO_AUDIO_STEREO(1) |
| 915 | 905 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) |
| 916 | 906 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) |
| 917 | 907 | |
| r29526 | r29527 | |
| 979 | 969 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 980 | 970 | |
| 981 | 971 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/512) |
| 982 | | MCFG_SOUND_CONFIG(namco_config) |
| 972 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 973 | MCFG_NAMCO_AUDIO_STEREO(1) |
| 983 | 974 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) |
| 984 | 975 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) |
| 985 | 976 | |
trunk/src/mame/drivers/jrpacman.c
| r29526 | r29527 | |
| 260 | 260 | |
| 261 | 261 | /************************************* |
| 262 | 262 | * |
| 263 | | * Sound interfaces |
| 264 | | * |
| 265 | | *************************************/ |
| 266 | | |
| 267 | | static const namco_interface namco_config = |
| 268 | | { |
| 269 | | 3, /* number of voices */ |
| 270 | | 0 /* stereo */ |
| 271 | | }; |
| 272 | | |
| 273 | | |
| 274 | | |
| 275 | | /************************************* |
| 276 | | * |
| 277 | 263 | * Machine drivers |
| 278 | 264 | * |
| 279 | 265 | *************************************/ |
| r29526 | r29527 | |
| 311 | 297 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 312 | 298 | |
| 313 | 299 | MCFG_SOUND_ADD("namco", NAMCO, 3072000/32) |
| 314 | | MCFG_SOUND_CONFIG(namco_config) |
| 300 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 315 | 301 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 316 | 302 | MACHINE_CONFIG_END |
| 317 | 303 | |
trunk/src/mame/drivers/pacland.c
| r29526 | r29527 | |
| 402 | 402 | GFXDECODE_END |
| 403 | 403 | |
| 404 | 404 | |
| 405 | | |
| 406 | | static const namco_interface namco_config = |
| 407 | | { |
| 408 | | 8, /* number of voices */ |
| 409 | | 0 /* stereo */ |
| 410 | | }; |
| 411 | | |
| 412 | 405 | INTERRUPT_GEN_MEMBER(pacland_state::main_vblank_irq) |
| 413 | 406 | { |
| 414 | 407 | if(m_main_irq_mask) |
| r29526 | r29527 | |
| 450 | 443 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 451 | 444 | |
| 452 | 445 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, XTAL_49_152MHz/2/1024) |
| 453 | | MCFG_SOUND_CONFIG(namco_config) |
| 446 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 454 | 447 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 455 | 448 | MACHINE_CONFIG_END |
| 456 | 449 | |
trunk/src/mame/drivers/galaga.c
| r29526 | r29527 | |
| 1574 | 1574 | /* The resistance path of the namco sound is 16k compared to |
| 1575 | 1575 | * the 10k of the highest gain 54xx filter. Giving a 10/16 gain. |
| 1576 | 1576 | */ |
| 1577 | | static const namco_interface namco_config = |
| 1578 | | { |
| 1579 | | 3, /* number of voices */ |
| 1580 | | 0 /* stereo */ |
| 1581 | | }; |
| 1582 | 1577 | |
| 1583 | 1578 | static const char *const battles_sample_names[] = |
| 1584 | 1579 | { |
| r29526 | r29527 | |
| 1682 | 1677 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1683 | 1678 | |
| 1684 | 1679 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) |
| 1685 | | MCFG_SOUND_CONFIG(namco_config) |
| 1680 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 1686 | 1681 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90 * 10.0 / 16.0) |
| 1687 | 1682 | |
| 1688 | 1683 | /* discrete circuit on the 54XX outputs */ |
| r29526 | r29527 | |
| 1746 | 1741 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1747 | 1742 | |
| 1748 | 1743 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) |
| 1749 | | MCFG_SOUND_CONFIG(namco_config) |
| 1744 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 1750 | 1745 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90 * 10.0 / 16.0) |
| 1751 | 1746 | |
| 1752 | 1747 | /* discrete circuit on the 54XX outputs */ |
| r29526 | r29527 | |
| 1834 | 1829 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1835 | 1830 | |
| 1836 | 1831 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) |
| 1837 | | MCFG_SOUND_CONFIG(namco_config) |
| 1832 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 1838 | 1833 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90 * 10.0 / 16.0) |
| 1839 | 1834 | |
| 1840 | 1835 | /* discrete circuit on the 54XX outputs */ |
| r29526 | r29527 | |
| 1935 | 1930 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1936 | 1931 | |
| 1937 | 1932 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) |
| 1938 | | MCFG_SOUND_CONFIG(namco_config) |
| 1933 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 1939 | 1934 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90 * 10.0 / 16.0) |
| 1940 | 1935 | MACHINE_CONFIG_END |
| 1941 | 1936 | |
trunk/src/mame/drivers/baraduke.c
| r29526 | r29527 | |
| 364 | 364 | |
| 365 | 365 | |
| 366 | 366 | |
| 367 | | static const namco_interface namco_config = |
| 368 | | { |
| 369 | | 8, /* number of voices */ |
| 370 | | 0 /* stereo */ |
| 371 | | }; |
| 372 | | |
| 373 | | |
| 374 | | |
| 375 | 367 | static MACHINE_CONFIG_START( baraduke, baraduke_state ) |
| 376 | 368 | |
| 377 | 369 | /* basic machine hardware */ |
| r29526 | r29527 | |
| 401 | 393 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 402 | 394 | |
| 403 | 395 | MCFG_SOUND_ADD("namco", NAMCO_CUS30, XTAL_49_152MHz/2048) |
| 404 | | MCFG_SOUND_CONFIG(namco_config) |
| 396 | MCFG_NAMCO_AUDIO_VOICES(8) |
| 405 | 397 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 406 | 398 | MACHINE_CONFIG_END |
| 407 | 399 | |
trunk/src/mame/drivers/pacman.c
| r29526 | r29527 | |
| 3298 | 3298 | GFXDECODE_END |
| 3299 | 3299 | |
| 3300 | 3300 | |
| 3301 | | |
| 3302 | 3301 | /************************************* |
| 3303 | 3302 | * |
| 3304 | | * Sound interfaces |
| 3305 | | * |
| 3306 | | *************************************/ |
| 3307 | | |
| 3308 | | static const namco_interface namco_config = |
| 3309 | | { |
| 3310 | | 3, /* number of voices */ |
| 3311 | | 0 /* stereo */ |
| 3312 | | }; |
| 3313 | | |
| 3314 | | |
| 3315 | | /************************************* |
| 3316 | | * |
| 3317 | 3303 | * Machine drivers |
| 3318 | 3304 | * |
| 3319 | 3305 | *************************************/ |
| r29526 | r29527 | |
| 3344 | 3330 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 3345 | 3331 | |
| 3346 | 3332 | MCFG_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/6/32) |
| 3347 | | MCFG_SOUND_CONFIG(namco_config) |
| 3333 | MCFG_NAMCO_AUDIO_VOICES(3) |
| 3348 | 3334 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 3349 | 3335 | MACHINE_CONFIG_END |
| 3350 | 3336 | |