summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ay8910.cpp
Commit message (Collapse)AuthorAgeFilesLines
* ymfm: Refactor new FM engine into a 3rdparty library (#8046) Aaron Giles2021-05-141-1/+1
| | | | | | | | | | | | | | | ymfm: refactor the code into a separate 3rdparty library * Moved ymfm core implementation to 3rdparty/ymfm * Split out each family (OPM/OPN/OPL/etc) into its own source file * Added preliminary OPQ and OPZ support, still WIP * Put all 3rdparty code into its own namespace ymfm * Fixed various bugs reported in #8042 * Created interface class for communication between the 3rdparty engine and the emulator * Standardized MAME implementation of all Yamaha devices based on a template class * Created standard base class ym_generic that can be used when multiple YM chips are swapped in * Changed YM2203/2608/2610 to embed a YM2149 as a subdevice instead of deriving from ay8910_device * Also provided compile-time option to use a simplified built-in SSG rather than using MAME's at all (currently off) * Consolidated MAME header files from one-per-chip (ym2151.h, ym2203.h, etc) to one-per-family (ymopm.h, ymopn.h, etc)
* ay8910: remove old printf msg hap2020-11-111-4/+0
|
* ay8910.cpp: Fix noise rate regression (#7283) cam9002020-09-241-3/+2
|
* ay8910.cpp: Reduce performance when expanded mode is enable (#7259) cam9002020-09-211-10/+9
|
* Revert "sound: Improved view interfaces to match usage patterns" Aaron Giles2020-09-171-11/+13
| | | | This reverts commit dc0ede3c90717ed25de0695c555b861f06344f18.
* sound: Improved view interfaces to match usage patterns Aaron Giles2020-09-171-13/+11
| | | | | | | | | | * read/write_stream_views now have an internal index * get/put/add/fill/copy now implicitly use and advance this index * new method reset() can (re)set the internal index * new method done() checks if index is past the end * new method remaining() indicates how many samples remain * get_indexed/put_indexed/etc available for random access * updated all consumers to new interfaces
* Significant internal changes to sound streams (#7169) Aaron Giles2020-09-131-37/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Significant internal changes to sound streams: Abstracted buffers of sound data into an internal stream_buffer class, with helper classes read_stream_view and write_stream_view which offer readable/writable "views" into the buffers Internal sound calculations are all done using stream_buffer::sample_t, which is a 32-bit float; existing callbacks are supported through an adapter that converts to/from signed 32-bit integers Improved behavior of dynamic stream sample rate changes to resample a short runway of data to preserve continuity across transitions Created a new stream update callback which passes a std::vector of read_stream_views for inputs, and a std::vector of write_stream_views for outputs Updated core mixer and speaker devices to the new stream update callback Updated the following sound cores to the new stream update callback: ay8910, dac, k054539, msm5205, namco, netlist, okim6295, pokey, samples, sn76496, sp0250, tms5220, tms57002, upd7759, vgm_visualizer, volt_reg Changed existing stream update callback to make inputs explicitly const and the output pointers const as well, since they are re-used across calls; fixed several engines that violated this rule Sound_manager::stream_alloc can no longer automatically connect to a device's sound_stream_update callback; instead, the stream_alloc() on the sound_device_interface should be called; updated many violators of this rule Streams can be created with SAMPLE_RATE_OUTPUT_ADAPTIVE, which dynamically tracks the sample rate of its first downstream output, or with SAMPLE_RATE_INPUT_ADAPTIVE, which tracks the sample rate of its first input Changed resampling to be a separate sound_stream that is invoked as needed, opening the path for selectable resampling implementations Added a flags parameter to the new stream allocation method that allows you to specify a that input streams should not be resampled Exposed stream_input and stream_output classes directly, simplifying access to user gains and stream names Added a simple dynamic compressor to sound_manager to provide nicer results when overdriven sound happens; compression does not affect speaker_report results Improved verbose speaker_report to print a graph of peaks over time More aggressive debugging enabled for now even in release builds (should be disabled prior to next release) via SOUND_DEBUG define in sound.h; report any assertions for fixing
* ay8910: Modernize struct member save state registration (nw) AJR2019-12-121-18/+15
|
* ay8910.cpp : Device-fied sunsoft 5B sound hardware cam9002019-09-271-1/+9
| | | | | - it has Yamaha volume parameter, single sound output and internal divider. - Developed by Yamaha
* ay8910.cpp : Reduce performance issue cam9002019-09-191-8/+10
|
* ay8910.cpp : Fix naming (#5613) cam9002019-09-101-14/+14
| | | | | | * ay8910.cpp : Fix naming * ay8910.cpp : Fix typo
* ay8910: Don't play fast and loose with register initialization; some builds ↵ AJR2019-09-091-5/+5
| | | | warn about that (nw)
* ay8910.cpp : Updates (#5607) cam9002019-09-091-191/+287
| | | | | | | * ay8910.cpp : Updates Implement ay8930 expanded mode, Add notes, Add feature value for chip specific features, Add runtime pin26 handler, Use struct for tone, envelope, Reduce defines, Fix spacings, Reduce unnecessary lines * ay8910.cpp : Revert unnecessary part
* ay8910: changed my mind on prev i/o bandaid, it's too dangerous: port read ↵ hap2019-04-071-6/+0
| | | | callback implies read strobe, but it doesn't do that on port direction write (nw)
* ay8910: reset i/o reg on port direction change (nw) hap2019-04-051-0/+6
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-42/+98
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-98/+42
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* srcclean (nw) Vas Crabb2019-02-241-48/+48
|
* ay8910.cpp : Updates cam9002019-02-151-42/+37
| | | | | | | Use shorter / correct type values, Remove unnecessary arguments in handlers, Duplicates device/bus/coco/cococart.cpp : Allow various types of delegates for install handler 5clown.cpp : Remove unnecessary arguments in some handler kchamp.cpp : Remove unnecessary arguments in some handler
* ay8910.cpp : Add notes for AY8930 expanded mode (#4583) cam9002019-02-021-0/+61
| | | | | | | | | | | | * ay8910.cpp : Add notes for AY8930 expanded mode * ay8910.cpp : Additional logs * add mode register for debugging * ay8910.cpp : Minor fix * ay8910.cpp : Additional fix
* as if millions of this pointers suddenly cried out in terror, and were ↵ Vas Crabb2018-06-081-36/+0
| | | | | | | suddenly silenced * streamline templates in addrmap.h * get rid of overloads on read/write member names - this will become even more important in the near future
* Fix the buggychl mcu to run at 3mhz as shown on the schematic, and add sound ↵ Lord-Nightmare2018-05-291-1/+1
| | | | address map and other comments. [Lord Nightmare]
* memory: Remove some space parameters from the apple2 domain [O. Galibert] Olivier Galibert2017-12-191-0/+20
|
* update ay8910/ym2203 notes (nw) Lord-Nightmare2017-08-311-4/+6
|
* Improve the speed of romident by dynamically allocating some large device ↵ Phil Bennett2017-07-021-2/+3
| | | | member arrays at device_start time instead [Phil Bennett]
* ay8910.cpp: Document device names (nw) AJR2017-06-151-20/+20
|
* ay8910.cpp: Fixed device_clock_changed to respect the YM2149_PIN26_LOW flag. ↵ Lord-Nightmare2017-06-111-6/+5
| | | | Fixes MameTesters #06614 [Lord Nightmare]
* fix c&p error (nw) Lord-Nightmare2017-06-091-5/+5
|
* add ay-3-8913 diagram (nw) Lord-Nightmare2017-06-061-0/+34
|
* various comment updates (nw) Lord-Nightmare2017-06-041-2/+2
|
* A little more info on the YMZ chips (nw) AJR2017-06-021-0/+6
|
* ay-3-8910: update/fix documentation and comments, add additional pinouts and ↵ Lord-Nightmare2017-06-021-77/+224
| | | | links to decaps and documentation (nw)
* ay8910.cpp: add pinout, remove outdated comments from .h [Lord Nightmare] Lord-Nightmare2017-05-301-0/+92
|
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-82/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | significant change, so please pay attention. The core changes are: * Short name, full name and source file are no longer members of device_t, they are part of the device type * MACHINE_COFIG_START no longer needs a driver class * MACHINE_CONFIG_DERIVED_CLASS is no longer necessary * Specify the state class you want in the GAME/COMP/CONS line * The compiler will work out the base class where the driver init member is declared * There is one static device type object per driver rather than one per machine configuration Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type. * DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders. * DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type. Use DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types. * These macros declare storage for the static data, and instantiate the device type and device finder templates. The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate. Things I've actually messed with substantially: * More descriptive names for a lot of devices * Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes * Changed DECO BSMT2000 ready callback into a device delegate * Untangled Microprose 3D noise from driver state * Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices * Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly * Started to break out common parts of Samsung ARM SoC devices * Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++ * Tried to make Z180 table allocation/setup a bit safer * Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant * Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size * Imporved encapsulation of Z80DART channels * Refactored the SPC7110 bit table generator loop to make it more readable * Added wrappers for SNES PPU operations so members can be made protected * Factored out some boilerplate for YM chips with PSG * toaplan2 gfx * stic/intv resolution * Video System video * Out Run/Y-board sprite alignment * GIC video hookup * Amstrad CPC ROM box members * IQ151 ROM cart region * MSX cart IRQ callback resolution time * SMS passthrough control devices starting subslots I've smoke-tested several drivers, but I've probably missed something. Things I've missed will likely blow up spectacularly with failure to bind errors and the like. Let me know if there's more subtle breakage (could have happened in FM or Voodoo). And can everyone please, please try to keep stuff clean. In particular, please stop polluting the global namespace. Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros. It feels like an uphill battle trying to get this stuff under control while more of it's added.
* Overrided device device method to support changing clock frequencies in the ↵ tim lindner2017-03-111-0/+5
| | | | ay8910.
* ay8910: Handy guide to bus control signals (nw) AJR2017-03-051-0/+22
|
* ay8910: Rename write handler, as it's not that most common setup Dirk Best2017-03-051-1/+2
|
* ay8910: Add a write handler for the case of bc1=a0 and bc2=a1 Dirk Best2017-03-051-0/+18
|
* Self-registering devices prep: Vas Crabb2017-02-271-9/+9
| | | | | | | | | | | | | | * Make device_creator a variable template and get rid of the ampersands * Remove screen.h and speaker.h from emu.h and add where necessary * Centralise instantiations of screen and speaker finder templates * Add/standardise #include guards in many hearers * Remove many redundant #includes * Order #includesr to help catch headers that can't be #included alone (nw) This changes #include order to be prefix, unit header if applicable then other stuff roughly in order from most dependent to least dependent library. This helps catch headers that don't #include things that they use.
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-19/+19
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* Implement upper address check, not configurable at present but chips could ↵ smf-2016-10-081-21/+35
| | | | be ordered from the factory with id's other than 0 (allowing you to chain multiple chips without adding extra address lines. Don't hardcode AY8910 into logerror, using name() instead. [smf]
* ay8910.cpp: Implement register readback masking for ay-3-8914 as used on ↵ Lord-Nightmare2016-09-151-1/+8
| | | | Intellivision [Lord Nightmare, Joe Zbiciak]
* big10: Various modest input/output improvements AJR2016-08-311-8/+13
| | | | | | | | | - Use applicable gambling input types and keypad for numbers instead of BUTTON<n> - Add ticket dispenser for payout (but is there any hopper feedback? no obvious error message) - Add lamp output(?) - Try to puzzle out some more DIP switches based on what the code does Slight improvements to AY8910 error logging, with some messages now disabled by default (nw)
* Added YM2203, YM3526, AY-3-8910, NES APU, DMG APU, K053260, and MultiPCM to ↵ therealmogminer@gmail.com2016-08-181-0/+23
| | | | vgmplay, nw
* Prevent NaN errors by initializing variable in ui::text_layout (nw) AJR2016-06-181-6/+2
| | | | Use osd_printf_verbose instead of popmessage in ay8910 (too annoying even for debug build)
* reverting: Miodrag Milanovic2016-01-201-21/+21
| | | | | | | SHA-1: 1f90ceab075c4869298e963bf0a14a0aac2f1caa * tags are now strings (nw) fix start project for custom builds in Visual Studio (nw)
* Revert "rest of device parameters to std::string (nw)" Miodrag Milanovic2016-01-201-5/+5
| | | | This reverts commit caba131d844ade3f2b30d6be24ea6cf46b2949d7.
* rest of device parameters to std::string (nw) Miodrag Milanovic2016-01-161-5/+5
|
* tags are now strings (nw) Miodrag Milanovic2016-01-161-21/+21
| | | | fix start project for custom builds in Visual Studio (nw)
* macro removal INLINE -> static inline (nw) Miodrag Milanovic2015-12-121-3/+3
|