summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sound/wasapi_sound.cpp
Commit message (Collapse)AuthorAgeFilesLines
* sound/wasapi_sound.cpp: Handle someone messing with the mixdown format right ↵ Vas Crabb2025-06-101-1/+2
| | | | as MAME exits.
* sound/wasapi_sound.cpp: Avoid another potential deadlock. Vas Crabb2025-06-101-39/+59
| | | | | | | | It's possible for a device format property update to block an activate call. There's still a race condition in that if streams get device invalidated errors before the property update arrives, the core may try and fail to create replacement streams. This at least stops it from causing a deadlock, at worst you lose sound.
* -sound/xaudio2_sound.cpp: Changed buffering strategy for output streams. Vas Crabb2025-06-061-10/+30
| | | | | | | | | | | | | | | | | * This should work better with output devices like Bluetooth speakers, and should be a bit smoother in general. -osd/osdfile.h: Ensure size isn't passed to ::operator delete when destructing directory entries. * osd_stat allocates additional space following the directory entry to store the name. A regular delete may pass sizeof(entry) to ::operator delete, which won't match the allocated size. This causes a problem if the runtime library checks it. (May suppress the warning in MT09137.) -sound: Got rid of dependencies on emu and frontend. We're working to reduce circular dependencies. Adding more is a regression.
* sound: change audio_latency meaning similar to what it was before (20ms ↵ hap2025-05-311-1/+2
| | | | steps for portaudio, xaudio2, wasapi), old mame.ini default setting of 2 should work fine
* sound/wasapi_sound.cpp: Repeat the channel mask from the mix format back ↵ Vas Crabb2025-05-301-9/+13
| | | | when initialising the audio client.
* sound/wasapi_sound.cpp, sound/xaudio2_sound.cpp: Changed logging back to ↵ Vas Crabb2025-05-301-23/+23
| | | | display names.
* -sound/wasapi_sound.cpp, sound/xaudio2_sound.cpp: Fixed device names. Vas Crabb2025-05-301-1/+0
| | | | | | | -file/winfile.cpp: Align allocation for directory entry structure in osd_stat. -file/stdfile.cpp: Updated signature for osd_stat.
* Aloow seperate display and configuration names for sound nodes Olivier Galibert2025-05-291-0/+1
|
* -sound/xaudio2_sound.cpp: Fixed some stuff not getting reset on exit()/init(). Vas Crabb2025-05-291-93/+156
| | | | | | -sound/wasapi_sound.cpp, sound/xaudio2_sound.cpp: Don't print an error message on a "not found" error getting default devices - this happens when there are no active devices.
* sound/sound_wasapi.cpp, sound/sound_xaudio2.cpp: Deal with resetting per-app ↵ Vas Crabb2025-05-271-10/+33
| | | | device to default in Windows mixer controls.
* sound: A few refinements: Vas Crabb2025-05-271-3/+5
| | | | | | | | * sound/sound_module.cpp: Recirculate buffers rather than removing them to reduces allocations. * sound/sound_module.cpp: Scale the number of samples to skip on overrun according to the packet size. * sound/xaudio2_sound.cpp: Hide endpoint devices in "unplugged" state.
* sound/wasapi_sound.cpp: Fixed clang ARM error. Vas Crabb2025-05-261-2/+2
|
* -sound/wasapi_sound.cpp: Improved error handling and buffer management. Vas Crabb2025-05-261-157/+252
| | | | | | | | | | | | | | | | | | | | | -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().
* sound/wasapi_sound.cpp: Fixed clang warnings. Vas Crabb2025-05-251-2/+2
|
* -sound/wasapi_sound.cpp: Added preliminary WASAPI sound module (not enabled ↵ Vas Crabb2025-05-251-0/+1440
yet). -sound/xaudio2_sound.cpp: More fixes: * Fixed a couple more potential deadlocks when handling critical engine errors. * Better tracking of the default device when devices are reconfigured.