summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio (follow)
Commit message (Collapse)AuthorAgeFilesLines
* m6802, nsc8105: Internalize internal RAM (nw) AJR2019-12-014-9/+3
|
* snk6502: fix nibbler 2player sound problem (nw) hap2019-11-281-0/+2
|
* srcclean and indentation cleanup (nw) Vas Crabb2019-11-242-26/+26
|
* Fixed cheekyms regression. (nw) couriersud2019-11-161-1/+1
|
* netlist: maintenance and bug fixes, remove DUMMY_INPUT. [Couriersud] couriersud2019-11-151-1/+1
| | | | | | | | | | - Removed DUMMY_INPUT. NC (not connected) pins should now use NC_PIN. If a NC_PIN is actually connected, an error will be logged and validation will fail. - Enabled "extended" validation. This will catch now if power terminals are not connected. - Added const and noexcept where appropriate. - Removed dead code. - Fixed the 7414 Schmitt-Trigger device to use nld_power_pins
* netlist: Proxy and power terminal hack removal. [Couriersud] couriersud2019-11-145-0/+24
| | | | | | | | | | | | | | | | | | - Devices ttlhigh and ttlhow are no longer automatically created. - All logic input devices (e.g. TTL_INPUT, LOGIC_INPUT) now need to have their power terminals (VCC, GND) connected. This opens the route for more appropriate proxy devices but comes at a cost. If the connections are omitted your circuit will not work as expected. Example: LOGIC_INPUT(I_SD0, 1, "AY8910PORT") NET_C(VCC, I_SD0.VCC) NET_C(GND, I_SD0.GND) - Updated all netlists. - Removed proxy information from terminal objects. This was replaced by a lookup hash whose life-span does not exceed netlest setup. These changes enable the removal of a number of hacks from the source going forward.
* dcs.h: Eliminate superfluous parens (nw) AJR2019-11-111-1/+1
|
* Eliminate a few more uses of auto_alloc (nw) AJR2019-11-102-9/+11
|
* continued Elan (Plug & Play) refactoring (#5882) David Haywood2019-11-112-96/+51
| | | | | | | | | | | | | | * elan code refactoring (nw) * save the obvious (nw) * continued refactoring (nw) * elan refactoring (nw) * continued refactor (nw) * continued elan refactoring (nw)
* start trying to identify more sound related features on the elan hw (nw) + ↵ David Haywood2019-11-082-18/+164
| | | | | | | | | | | | | | | | Senario Poker SunPlus (not working) (#5874) * elan sound stuff (nw) * move more audio bits into audio file (nw) * new NOT WORKING machines ----- Texas Hold'em TV Poker - 6 Player Edition (UK) [David Haywood, Morten Kirkegaard, Peter Wilhelmsen] need to emulate the controllers etc. (currently requires debug hack to boot past initial logo) * start moving some more elan stuff around (nw)
* loose ends: (nw) Vas Crabb2019-11-061-2/+4
| | | | | | * mm5740 X pins are numbered starting from 1, also fix typo in pinout comment (Y10, not Y0) * make more members protected/private as appropriate * got rid of one more video start override in a clean way
* Plug & Play / Elan EU3A05 / EU3A14 splitting up, identifying of common ↵ David Haywood2019-11-032-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | features etc. (#5849) * elan eu3a05 / eu3a14 - identify some common bits (nw) * some elan refactoring baed on current knowledge / standards (nw) * elan refactoring (nw) * elan splitting / refactoring (nw) * validate (nw) * note used areas (nw) * register observations (nw) * another observation (nw) * add the sprite double feature (nw) * rendering tweaks (nw) * rendering improvements for air blaster 3d stages (nw) * refactoring (nw)
* Spring cleaning: Vas Crabb2019-11-013-3/+3
| | | | | | | | | | | | * Changed emu_fatalerror to use util::string_format semantics * Fixed some incorrectly marked up stuff in build scripts * Make internal layout compression type a scoped enum (only zlib is supported still, but at least the values aren't magic numbers now) * Fixed memory leaks in Xbox USB * There can only be one "perfect quantum" device - enforce that only the root machine can set it, as allowing subdevices to will cause weird issues with slot cards overiding it * Allow multiple devices to set maximum quantum and use the most restrictive one (it's maximum quantum, it would be minimum interleave) * Got rid of device_slot_card_interface as it wasn't providing value * Added a helper template to reduce certain kinds of boilerplate in slots/buses * Cleaned up some particularly bad slot code (plenty more of that to do), and made some slots more idiomatic
* more cleanup of cane - save state support and fix for Linux with GCC and ↵ Vas Crabb2019-11-012-9/+12
| | | | glibstdc++ (nw)
* clean up cane/orbite additions (nw) Vas Crabb2019-10-312-29/+33
|
* Added two new unreleased Model Racing games (#5813) janniz2019-10-312-0/+324
| | | | | | | | | | | | | | | | | | * Fixed LOG_WAV_ENABLED_ONLY (m_enable has to be checked only if LOG_WAV_ENABLED_ONLY is set) Added log data to the right channel of the wave, accordingly to the definition declared in LOG_WAV_VALUE_R * Fixed an error with tag() returning a ':' and generating a filename not valid in Windows environment * Added Model Racing "Cane" * Added Model Racing "Orbite" * Replaced the char array with a std::string in sn76477_device::open_wav_file to override possible buffer overrun. Minor cosmetic change in a boolean expression in sn76477_device::sound_stream_update * Refactored "Cane" related code creating an audio device to encapsulate the audio system Refactored "Cane" and "Orbite" creating their own classes Other minor changes in indentation of the source code
* Make devdelegate more like devcb for configuration. This is a Vas Crabb2019-10-2610-64/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fundamental change to show device delegates are configured. Device delegates are now aware of the current device during configuration and will resolve string tags relative to it. This means that device delegates need a device to be supplied on construction so they can find the machine configuration object. There's a one-dimensional array helper to make it easier to construct arrays of device delegates with the same owner. (I didn't make an n-dimensional one because I didn't hit a use case, but it would be a simple addition.) There's no more bind_relative_to member - just call resolve() like you would for a devcb. There's also no need to cast nullptr when creating a late bind device delegate. The flip side is that for an overloaded or non-capturing lambda you'll need to cast to the desired type. There is one less conditional branch in the hot path for calls for delegates bound to a function pointer of member function pointer. This comes at the cost of one additional unconditional branch in the hot path for calls to delegates bound to functoids (lambdas, functions that don't take an object reference, other callable objects). This applies to all delegates, not just device delegates. Address spaces will now print an error message if a late bind error is encountered while installing a handler. This will give the range and address range, hopefully making it easier to guess which memory map is faulty. For the simple case of allowing a device_delegate member to be configured, use a member like this: template <typename... T> void set_foo(T &&...args) { m_foo_cb.set(std::forward<T>(args)...); } For a case where different delegates need to be used depending on the function signature, see src/emu/screen.h (the screen update function setters). Device delegates now take a target specification and function pointer. The target may be: * Target omitted, implying the current device being configured. This can only be used during configuration. It will work as long as the current device is not removed/replaced. * A tag string relative to the current device being configured. This can only be used during configuration. It will not be callable until .resolve() is called. It will work as long as the current device is not removed/replaced. * A device finder (required_device/optional_device). The delegate will late bind to the current target of the device finder. It will not be callable until .resolve() is called. It will work properly if the target device is replaced, as long as the device finder's base object isn't removed/replaced. * A reference to an object. It will be callable immediately. It will work as long as the target object is not removed/replaced. The target types and restrictions are pretty similar to what you already have on object finders and devcb, so it shouldn't cause any surprises. Note that dereferencing a device finder will changes the effect. To illustrate this: ... required_device<some_device> m_dev; ... m_dev(*this, "dev") ... // will late bind to "dev" relative to *this // will work if "dev" hasn't been created yet or is replaced later // won't work if *this is removed/replaced // won't be callable until resolve() is called cb1.set(m_dev, FUNC(some_device::w)); ... // will bind to current target of m_dev // will not work if m_dev is not resolved // will not work if "dev" is replaced later // will be callable immediately cb2.set(*m_dev, FUNC(some_device::w)); ... The order of the target and name has been reversed for functoids (lambdas and other callable objects). This allows the NAME macro to be used on lambdas and functoids. For example: foo.set_something(NAME([this] (u8 data) { m_something = data; })); I realise the diagnostic messages get ugly if you use NAME on a large lambda. You can still give a literal name, you just have to place it after the lambda rather than before. This is uglier, but it's intentional. I'm trying to drive developers away from a certain style. While it's nice that you can put half the driver code in the memory map, it detracts from readability. It's hard to visualise the memory range mappings if the memory map functions are punctuated by large lambdas. There's also slightly higher overhead for calling a delegate bound to a functoid. If the code is prettier for trivial lambdas but uglier for non-trivial lambdas in address maps, it will hopefully steer people away from putting non-trivial lambdas in memory maps. There were some devices that were converted from using plain delegates without adding bind_relative_to calls. I fixed some of them (e.g. LaserDisc) but I probably missed some. These will likely crash on unresolved delegate calls. There are some devices that reset delegates at configuration complete or start time, preventing them from being set up during configuration (e.g. src/devices/video/ppu2c0x.cpp and src/devices/machine/68307.cpp). This goes against the design principles of how device delegates should be used, but I didn't change them because I don't trust myself to find all the places they're used. I've definitely broken some stuff with this (I know about asterix), so report issues and bear with me until I get it all fixed.
* srcclean (nw) Vas Crabb2019-10-261-2/+2
|
* Spelling (#5796) Zoë Blade2019-10-241-1/+1
| | | | | | | | | | | | * Tidy up comments * Fix typos * Fix spelling * Tidy * Tidy
* Tidy grammar Zoë Blade2019-10-231-7/+7
|
* Netlist: code maintenance and improvements. [Couriersud] couriersud2019-10-182-3/+0
| | | | | | | | - Added support for line markers to the preprocessor and parser. - Added support for include processing to the preprocessor. - Moved sources base type to plib to be used for preprocessor includes. This enables to include e.g. from rom memory regions. - Renamed some defines
* (nw) add doxygen comments for a bunch of core stuff, and convert a bunch of ↵ Vas Crabb2019-10-161-3/+3
| | | | comments to doxygen format
* (nw) mw8080bw.cpp: completely untangle tone generator from machine state, ↵ Vas Crabb2019-10-152-692/+736
| | | | move more stuff out to derived state classes, reduce tag map lookups
* netlist: mame netlist reorganization. [Couriersud] couriersud2019-10-139-3/+355
| | | | | | - moved netlists out of driver code into audio/ or machine/ as nl_xxx.cpp files. - identified and documented extended validation - updated arcade, mess and nl targets
* netlist: code maintenance (nw) couriersud2019-10-121-2/+2
| | | | - clang lint and pedantic fixes - mat_cr.h: separate solving linear systems from underlying matrix
* audio/leland.cpp: fixed regression (nw) Ivan Vangelista2019-10-121-1/+1
|
* netlist: code maintenance. (nw) couriersud2019-10-111-4/+4
| | | | | - some readability improvements - some simplifications - kidniki uses frontiers again (speed improvement)
* (nw) misc cleanup: Vas Crabb2019-10-111-76/+16
| | | | | * imagedev/cassette: add bitwise operators for cassette_state so a lot of ugly casts can go away * audio/leland.cpp, cubeqst.cpp: make better use of loops in machine configuration
* (nw) removed every remaining AM_ macro I could find in comments, but one in ↵ Ivan Vangelista2019-10-101-1/+1
| | | | emu\memarray.h cause I didn't want to cause a full recompile for this (nw)
* mw8080bw.cpp: move clowns/spacwalk into their own class - all the games ↵ Vas Crabb2019-10-102-360/+406
| | | | should run at this point (nw)
* mw8080bw.cpp: fix clowns, move desertgu out of giant class, reduce Vas Crabb2019-10-102-290/+377
| | | | | | | runtime tag lookups, use blend modes for spcenctr layout (nw) boothill, dplay, spacwalk and dogpatch are probably broken - I'll fix them later
* mw8080bw.cpp: move more stuff out of the giant class and reduce runtime tag ↵ Vas Crabb2019-10-103-1019/+1089
| | | | map lookups (nw)
* mw8080bw: fix duplicate save state, put things back in the order they were (nw) Vas Crabb2019-10-092-107/+107
|
* (nw) misc stuff: Vas Crabb2019-10-092-1156/+1347
| | | | | | | | | | | | | | | | | | | | | | | * screen: validate crystal values used for set_raw * driver: get rid of sound start/reset overrides in machine configuration * vrender0.cpp, nexus3d.cpp: corrected pixel clock crystal value * mw8080bw.cpp: turned several audio subsystems into devices * bus/sat_ctrl: don't start subdevices in device_start - the machine does it for you * mb14241.cpp: simplify handlers * fgoal.cpp: updated for simplified handlers * devfind, screen: repair some doxy comments that had rotted with refactoring * doxygen: disable warnings for undocumented things - it's most of our codebase * snowbros.cpp: restore an output level setting lost in MCFG removal There's an outstanding validation error from the HP98543 DIO video card not using a valid crystal value. Someone needs to find a picture of the card and confirm or deny the existence of the 39.504MHz crystal. The various start/reset overrides are bugs waiting to happen. It's not immediately obvious that the ones run earlier can end up being called multiple times if subsequent ones throw missing dependencies exceptions. They're a relic of when everything from the old C-style drivers was thrown into classes all jumbled together.
* kidniki: Fix a number of audio issues. [Couriersud] couriersud2019-10-063-36/+60
| | | | | | | - better document schematics, add J4 - Fix a number of resistor/capacitor values. - Fix one barrier statement. - Simplify code.
* 'subwoofer' does not describe a position (nw) Vas Crabb2019-10-051-3/+3
|
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-261-2/+2
| | | | | | | | | | | | | | | | | (nw) This has been a long time coming but it's here at last. It should be easier now that logerror, popmessage and osd_printf_* behave like string_format and stream_format. Remember the differences from printf: * Any object with a stream out operator works with %s * %d, %i, %o, %x, %X, etc. work out the size by magic * No sign extending promotion to int for short/char * No widening/narrowing conversions for characters/strings * Same rules on all platforms, insulated from C runtime library * No format warnings from compiler * Assert in debug builds if number of arguments doesn't match format (nw) Also removed a pile of redundant c_str and string_format, and some workarounds for not being able to portably format 64-bit integers or long long.
* xtal.cpp: Slight correction to one value (nw) AJR2019-09-251-3/+3
|
* (nw) misc cleanup: Vas Crabb2019-09-204-27/+24
| | | | | * get rid of most assert_always * get rid of a few MCFG_*_OVERRIDE
* PORT_CUSTOM simplification (nw) AJR2019-09-143-4/+4
| | | | | | | | | | | | - Remove both arguments from CUSTOM_INPUT_MEMBER (adding template parameters as necessary) - Remove 'param' from PORT_CUSTOM_MEMBER and assume 'device' is DEVICE_SELF (use PORT_CUSTOM_DEVICE_MEMBER if it isn't) - Replace PORT_CUSTOM_MEMBER with PORT_READ_LINE_MEMBER where applicable Add implicit DEVICE_SELF variants of PORT_READ_LINE_DEVICE_MEMBER and PORT_WRITE_LINE_DEVICE_MEMBER (nw) Remove ioport_field argument from PORT_CROSSHAIR_MAPPER (nw) captflag, gmgalax: Separate driver classes from base (nw)
* cps3.cpp: remove "imperfect graphics" flag, improve save states, fix eeprom ↵ MetalliC2019-09-071-0/+8
| | | | size, document known issues
* n8080.cpp: Split up state class; simplify read/write handlers (nw) AJR2019-09-021-118/+96
|
* ioport: Change PORT_CHANGED_MEMBER param type from void * to u32 (nw) AJR2019-08-151-1/+1
|
* taito_en.cpp: saner dividers for mb87078, fixes regression with Taito F3 ↵ Angelo Salese2019-07-261-5/+5
| | | | volume control being too quiet [Angelo Salese]
* bzone, redbaron: Simplify handlers; silence some dummy reads (nw) AJR2019-07-193-3/+3
|
* Add Bally squawk & talk boards (#5175) Mike2019-06-084-385/+499
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bally pinball by35: Add sound LED to layouts. * Bally pinball by35: whitespace/formatting cleanup. * Bally pinball by35: Add filters to audio device output. The boards have them, and the chip like to output DC at idle. This can cause clipping in the mixer. * 6821pia: For port A reads, only use the DDR for reading pins. * Bally pinball by35: Move over cabinet switches. This makes more room for a sound board LED. * Bally pinball audio: Add Squawk & Talk board. * Bally pinball audio: Add new board, Squawk & Talk with the AY chip. * TMS5220: Adjust delay time between /RS going low and /READY being set. The datasheet doesn't list this time exactly, but something close (time between /RS going low and the data being valid on the bus). It's measured in usec, not clock cycles. * Bally audio: minor cleanup * Midway mcr: Use Bally Squawk & Talk sound board implementation * Bally pinball audio: remove clock from as2888, as it's a discrete board.
* radica / elan eu3a14 - explore more tile mode bits used by rad_hnt3, ↵ David Haywood2019-06-082-25/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rad_foot etc. (nw) (#5179) * rad_hnt3 misc improvements (nw) * better support for alt modes used in rad_hnt3 and rad_foot * tidy/comments (nw) * test note (nw) * actually not a special case (nw) * document other test modes (nw) * palette selection improvements (nw) * switch according to test mode (nw) * improved palette handling for rad_foot (7bpp mode) * ramsize (nw) * exploring the ram based layer (nw) * ram tile layer in hnt3 is 2bpp, hardcode stuff for now until we've found the proper register bits * slight refactor (nw) * some palette fixes (nw) * fix 2bpp tile colours (nw) * rename rad_eu to elan_eu * rework tile pri (nw) * refactor (nw) * note updates (nw) * kludge (nw) * some weird regs notes (nw)
* devcb: Eliminate legacy callback syntax (nw) AJR2019-06-061-1/+1
|
* jedi.cpp : Updates cam9002019-06-031-5/+5
| | | | Simplify handlers, Add gfxdecode for debug, Add palette_device for palette handling, Reduce runtime tag lookups, Fix some drawing routines, Reduce unnecessary lines, Fix namings, Spacings, Use shorter / correct type values, Add notes
* cpu/jaguar/*.cpp : Updates cam9002019-06-021-1/+1
| | | | | Add notes, Reduce defines, Simplify handlers, Use shorter / correct type values, Reduce unnecessary lines, Remove register_postload jaguar.cpp : Fix metadata, Correct XTAL frequency