84 Commits

Author SHA1 Message Date
Roman Donchenko
109c3705ff docs: fix assorted typos (#14152) 2025-09-09 20:45:36 -04:00
Vas Crabb
891cbf7c8c -dynax/ddenlovr.cpp: Identified some DIP switch settings for Majiang Xingyun Shenlong, marked other settings as unknown.
-sound/sdl_sound.cpp: Corrected SDL verson detection macro.

-docs: A few sound documentation updates.
2025-06-09 04:04:51 +10:00
hap
874cb93005 docs: remove unneeded note on -speed setting 2025-06-06 20:15:50 +02:00
hap
d368a1cffa docs: fix spacing after prev commit 2025-05-31 17:08:37 +02:00
hap
01cdde101f sound: change audio_latency meaning similar to what it was before (20ms steps for portaudio, xaudio2, wasapi), old mame.ini default setting of 2 should work fine 2025-05-31 17:04:28 +02:00
hap
6fbb9dc728 sound: print verbose message if module doesn't support audio_latency option,
docs: small update, remove references to dsound
2025-05-31 12:25:42 +02:00
hap
73b7cdabef attotime: fix lockup with as_string and negative attotime,
video: fix issue with throttling when mame runs at slow motion (-speed lower than 0.2)
options: change mimimum speed setting from 0.01 to 0.1 (mame would crash with very low value, and besides, video throttle still fails below 0.1),
ui: add speed slider when cheats are enabled
2025-05-30 19:18:49 +02:00
hap
05d798c1b3 misc: small spelling correction 2025-05-29 14:40:58 +02:00
Vas Crabb
a0412a6387 -sound: Removed DirectSound sound module.
-sound/xaudio2_sound.cpp: Use more fine-grained locking in voice
 callbacks, simplified further simplified buffer queueing.
2025-05-29 16:20:33 +10:00
Vas Crabb
335639e65f -sound/wasapi_sound.cpp: Improved error handling and buffer management.
-lib/osdobj_common.cpp: Made WASAPI sound the default on Windows and
 made DirectSound lower priority than XAudio2.

-osd/eminline.h: Made multiply/divide helper names a bit more consistent
 with other functions.

-osd/eigcc.h: Moved helpers that use the __int128 type here, and fixed
 availability detection for them.

-osd/eigccx86.h: Added fast multiply/divide helpers for x86-64.

-docs: Updated the list of supported sound modules.

-exidy/exidy.cpp: Use the 1 Coin/1 Credit setting listed in the manual
for Venture by default.

-emu/sound.cpp: Fixed GCC uninitialised local variable warnings in
 sound_manager::run_effects().
2025-05-26 04:16:19 +10:00
hap
4d267d1262 sound: change audio_latency to seconds (float), so people with existing mame.ini won't get broken sound 2025-05-20 10:19:44 +02:00
hap
e3ec54ffe2 sound: remove references to portaudio options that were removed 2025-05-18 14:51:27 +02:00
hap
b50e41e857 sound: change audio_latency duration option to milliseconds 2025-05-18 14:32:45 +02:00
hap
d546f73425 docs: remove mentions of removed compressor cmdline option 2025-05-09 17:33:28 +02:00
Olivier Galibert
d0f1c15a0f New sound infrastructure.
Should be added soon:
- mute
- speaker/microphone resampling

To be added a little later:
- compression
- reverb

Needs to be added by someone else:
- coreaudio
- direct
- portaudio
- xaudio2
- js
2025-04-27 22:23:20 +02:00
Vas Crabb
77d4cc3475 Cleaned up the mess from #12610:
* Command line options need to be documented.
* Don't assume C strings returned as option values remain valid
  indefinitely.
* Fixed wording for option description.
2024-08-27 04:17:23 +10:00
Vas Crabb
64834145ae -osd: Update slider list on demand rather than on frame updated (fixes MT08857).
-konami/konamigq.cpp: No need to cancel a newly allocated timer.
2024-04-27 04:42:12 +10:00
Vas Crabb
f91b896cda input/input_sdl.cpp: Added an SDL lightgun provider.
This does essentially the same thing as the Win32 lightgun provider,
mapping the absolute pointer position over the window to gun axes.

Also added a bunch of const in the windows input handling code.

docs: Bumped version, as features that are not in a releaesd version of
MAME are now documented.
2024-04-26 06:26:22 +10:00
Vas Crabb
4ddd26fe21 Initial touch input support:
* Feed mouse/pen/touch pointer events through UI input manager with Win32 and SDL.
* Started migrating UI code to use new API and reworking mouse/touch interaction.
* emu/render.cpp: Support pressing multiple clickable layout items simultaneously.
* emu/render.cpp: Allow UI elements to be drawn in any window.
* emu/rendlay.cpp, luaengine_render.cpp: Added layout view events for pointer input.
* ui/ui.cpp: Allow the UI handler to control pointer display.
* ui/analogipt.cpp: Added mouse/touch and more keys for navigating field state list.
* ui/menu.cpp: Use vertical swipe to scroll and horizontal swipe to adjust.
* ui/menu.cpp: Draw after processing input - greatly improves responsiveness.
* ui/menu.cpp: Ignore keyboard/gamepad input during pointer actions.
* ui/selmenu.cpp: Made left/right info pane arrows repeat when held.
* ui/selmenu.cpp: Use middle click to move keyboard focus.
* ui/selmenu.cpp: Let filter list scroll if it's too tall, and use a bit of horizontal padding.
* ui/selmenu.cpp: Improved divider sizing.
* ui/state.cpp: Don't allow clicks to pass through the confirm deletion prompt to the menu.
* ui/simpleselgame.cpp: Fixed error message display and graphics/sound status not showing.
* ui/simpleselgame.cpp: Allow tap/click to dismiss error message.
* ui/utils.cpp: Show UI for choice filters when there are no choices - it's less confusing.
* modules/input/input_sdl.cpp: Made scaling for mouse scroll better match RawInput and DirectInput.
* modules/input/input_rawinput.cpp: Added support for horizontal scroll axis.
* modules/input/input_win32.cpp: Added support for scroll axes and more buttons to mouse/lightgun.
* modules/debugger/debugimgui.cpp: Don't fight over events with the UI manager - it breaks menus.
* osd/windows/window.cpp: Translate mouse position to window cooridinates for scroll wheel events.
* osd/sdl/window.cpp: Supply last mouse position for scroll wheel events if possible.
* scripts/build/complay.py: Made zero input mask an error - it was only being used to block clicks.
2024-04-12 02:49:15 +10:00
Vas Crabb
9626b93a41 Fixes and cleanup:
roland/roland_d70.cpp: Use object finders, use memory shares rather than
ram_device, fixed Endianness bugs, fixed bad indentation, fixed
double-qualified member functions, use m_ prefix consistently for
members, use lowercase hex digits, don't allow writes to ROM, fixed
header #include order.

docs: Corrected docmented default for ui_mouse option.

tektronix/tek440x.cpp: #include local headers first, etc.

bus/a2bus/snesmax.h: Fixed copy/pasted comment.

yamaha/ympsr2000.cpp: Put code in an anonymous namespace.
2024-03-12 04:47:09 +11:00
Angelo Salese
7c67c1b2da docs: Fixed typo in -wavwrite option example. (#11919) 2024-01-09 05:22:38 +11:00
Firehawke
09be4295de docs: Fixed documentation compilation warning. (#11586)
Fixes a title underline too short warning.
2023-10-01 13:10:30 +11:00
Tom Cariello
30d92e397d docs: Fixed many editing errors and spelling errors. (#11575)
Also fixed outdated link to contributing guidelines.
2023-09-29 00:41:31 +10:00
Vas Crabb
82394e8569 Adjustments to option priority interactions:
emu/sound.cpp: Made -volume in source file INI or higher priority
context take precedence over volume read from CFG file.  This matches
behaviour of -bgfx_screen_chains.

emu/input.cpp: Made explicit -no{mouse|joystick|lightgun} take
precedence over -{mouse|trackball|adstick|paddle}_device etc. from lower
priority levels.

Alos got rid of a bunch of unnecessary simple_list.
2023-05-09 01:49:41 +10:00
Vas Crabb
b06dae9201 clifront.cpp: Changed -listbios to work more like -listslots, showing all BIOS options in a system. 2023-04-10 06:34:35 +10:00