> To: submit@mamedev.org
> CC: atariace@hotmail.com
> Subject: [patch] Cleanup natural keyboard support
> Date: Tue, 14 Dec 2010 07:20:08 -0800
>
> Hi mamedev,
>
> inputx_setup_natural_keyboard sets callbacks from the core into the
> drivers which lack machine or device pointers. This means that
> drivers that use this api can't completely place their state in
> non-global storage. This patch fixes that by adding the machine
> parameter to the callbacks, and places the implementation data into
> input_port_private as well.
>
> This really only affects MESS, since nothing in MAME uses this api.
>
> ~aa
into one file, and separated the speaker device into its own file.
Generalized the concept of dynamically assigned inputs and re-wired the
speaker to work this way, so it is now treated just like any other
sound device. Added methods to the device_sound_interface for controlling
output gain and mapping device inputs/outputs to stream inputs/outputs.
Also made the sound_stream_update() method pure virtual, so all modern
sound devices must use the new mechanism for stream updates.
Primary changes outside of the core are:
stream_update(stream) == stream->update()
stream_create(device,...) == machine->sound().stream_alloc(*device,...)
sound_global_enable(machine,enable) == machine->sound().system_enable(enable)
Beyond this, the patterns are relatively obvious for the remaining calls.
Comment: There are still a few issues with some games where the data might need refining. The following sets do not work, even as a 1 slot game but work as normal sets; (mt_tetri, mt_gng, mt_fwld, mt_srbb)
Notes out of whatsnew.txt
* It's sure to have bugs, but it should get the job done for now.
* It's unbelievable how many typos (major or otherwise) docs like this have.
* I haven't heard from s_bastian about making the ROM images available in the
monkey project, but we'll have 'em up as soon as he pops up again.
* Does anyone know of any hardware that incorporated one of these? I'm looking
for things to disassemble in the meantime :).
- SoftList is incompelte, I hate working with the XML, if somebody wants to add the remaining titles, be my guest
- SMS games have issues, the CPU isn't being properly reset (or something) when moving between games, so stick to only a single SMS game for now or the z80 will crash.
It used to work, but the code has been out of use for a while.
- syntax is MAME megatech -cart1 mt_beast -cart2 mt_soni2 -cart8 mt_shar2
Notes out of whatsnew.txt
* This uses modern devices, but has not been tested in a driver yet, so I may
have done something wrong. I will fix it when the time comes.
* 60% of the disassembler is complete. I will finish it over the next few days.
* There are many similarities in execution to the dsp32, and the existing 32 code
will come in handy when it's time to write the execution engine.
* This thing is a pleasure compared to the dsp56k.
* Changed DRHL description to "Drews Revenge (v.2.89, set 1)"
* Added Drews Revenge (v.2.89, set 2). Based on 8080 CPU.
New games marked as GAME_NOT_WORKING
------------------------------------
Drews Revenge (v.2.89, set 2) [Roberto Fresca, Smitdogg, The Dumping Union]
This now has all the stream related code. discrete_device
thus now contains all the generic code and may be used
going forward to implement not sound related use cases. [Couriersud]