Commit Graph

1702 Commits

Author SHA1 Message Date
libretroadmin 072d953b01 Only increment written if ir is > 0 2025-07-31 14:32:52 +02:00
libretroadmin b425abd0bb (WASAPI) Small cleanups:
* written variable changed from 'ssize_t' to 'size_t'
* for loop rewritten to while
2025-07-31 14:26:55 +02:00
libretroadmin 13c6eb53c9 Some more static code analysis fixes/cleanups 2025-07-22 17:17:20 +02:00
libretroadmin 99fe15be46 Fix wasapi_microphone 2025-07-20 08:31:12 +02:00
libretroadmin b0e344a423 Silence some code analysis warnings 2025-07-20 08:11:36 +02:00
libretroadmin ff652ce22d Fix typo 2025-07-19 22:54:51 +02:00
libretroadmin f8840774e3 (WASAPI) Get rid of IFACE_RELEASE macro 2025-07-19 22:51:49 +02:00
libretroadmin 0efe022e9d Remove audio/common/alsathread.h 2025-07-19 20:18:06 +02:00
Viačasłaŭ 43cec217b9
PipeWire buildfix (#18106) 2025-07-19 09:44:18 +02:00
LibretroAdmin 57a8a731da More UCRT buildfixes 2025-07-18 16:07:10 +02:00
LibretroAdmin c9931cd936
Merge microphone drivers (#18103)
* Merge microphone drivers

* Some buildfixes

* * Merge audio/common/wasapi.c into audio/drivers/wassapi.c
* Buildfix for alsa/drivers/alsathread.c

* Merge more files

* Attempted buildfix

* Try to use enum values instead of eRender/eCapture

* Simplification of mmdevice_name
2025-07-18 15:47:31 +02:00
libretroadmin f45fd77d68 Fix errors and warnings pointed out by static code analysis (Clang) 2025-07-17 08:49:53 +02:00
libretroadmin 2dbb9f62d8 * Change some variable naming conventions
* Make return control paths less dependent on variables
2025-07-11 02:15:12 +02:00
sonninnos b2ca569521 Logging unification cleanups 2025-07-10 05:59:06 +03:00
Joseph Mattiello 3344af01d7
extract delay to define, 10ms 2025-06-10 12:21:13 -04:00
Joseph Mattiello 663f318d5f
enable mic on macos
add mic usage to info.plist

enable micorphone in xcconfig

mic device selection macos

snapshot

revert ios driver

macos only driver, doesn’t deadlock now

macos driver seems to be doing something

looooooop

well, at least it doesn’t spin lock, no audio

audio capture working!

seems to be working now

cleanup some extra logging

clean up some extra logging

rename ios driver for clarity

remove some locks

better performance, but some noise

remove unused fifo_lock

clear the fifo

fix noise in buffer

some improvements, might not need

remove superfulous silent check

reduce latency

Signed-off-by: Joseph Mattiello <git@joemattiello.com>
2025-06-08 22:12:22 -04:00
Eric Warmenhoven a0263db217 iOS: fix/enable coreaudio microphone driver 2025-06-06 14:10:02 -04:00
Eric Warmenhoven 720f5bca59 Merge remote-tracking branch 'libretro/master' into warmenhoven/dev/MicCoreAudio 2025-06-06 14:09:19 -04:00
libretroadmin f1f50bf7f7 (audio_driver) Cache slowmotion_ratio variable into local variable -
used inside loop
2025-05-29 06:51:49 +02:00
libretroadmin c9bc941830 move microphone_driver.c inside audio_driver.c. This way we can move
some of the defines from audio_defines.h into audio_driver.c
2025-05-28 17:32:14 +02:00
libretroadmin 08c0221c27 (audio driver) Cleanups 2025-05-28 17:19:32 +02:00
libretroadmin 13790a0fad (Audio) Some cleanups 2025-05-28 16:40:56 +02:00
LibretroAdmin cd4894d627
Merge pull request #17928 from BinBashBanana/master
Rewrite RWebAudio driver
2025-05-26 12:53:27 +02:00
LibretroAdmin 65f76bd514
Update audio_driver.c 2025-05-25 15:41:17 +02:00
LibretroAdmin a4f73c622d
Update audio_driver.c 2025-05-25 15:36:42 +02:00
LibretroAdmin 990cc9b0b2
Update audio_driver.c - small cleanup for code readability
Makes it apparent that these variables are rewind-specific
2025-05-25 15:31:46 +02:00
BinBashBanana c2d7366ea1 Rewrite RWebAudio driver 2025-05-21 18:05:05 -07:00
sonninnos 0818feb131 Wasapi: Buffer correction 2025-05-09 19:09:55 +03:00
BinBashBanana 2d3c18e48d Emscripten improvements pt. 4 2025-05-08 11:01:43 -07:00
Joseph Mattiello 3eaa9f15a9
Add Microphone CoreAudio driver for iOS and macOS
Signed-off-by: Joseph Mattiello <git@joemattiello.com>
2025-04-16 15:37:11 -04:00
LibretroAdmin 82d8b9630a
Merge pull request #17750 from BinBashBanana/master 2025-04-10 03:35:45 -07:00
pstef 70aaa0a55c Fix non-griffin build for 3DS and make it the default
While here:
* remove input_overlay and task_overlay from linking blacklist
* move -Werror to CC invocation since C++ refuses to use it
* copy the quiet build mode from the main Makefile and make it the
  default
* temporarily define DEPRECATED for gpu_old.h to allow succesful build
* replace the call to command_event() with one to retroarch_main_quit()
  in a failure case
* add missing uncompr.o in Makefile.common for HAVE_BUILTINZLIB
2025-04-06 18:35:41 +00:00
pstef 39fd1176dd Add a missing malloc.h include for memalign() 2025-04-06 00:56:04 +00:00
BinBashBanana 05cefc9a4d AudioWorklet driver, misc. emscripten fixes 2025-03-28 19:41:40 -07:00
pstef bad0e58372 CTR: more compiler warnings cleanup
* unsigned vs signed comparison
* copy DEBUG_VAR from wiiu - this one prints pointer values in a
  portable way
* prove GCC14 that a date formatted as "00/00/0000" can fit into 11
  bytes
* explicitly mention previously unhandled enum constants
* Adding GFX widgets in b9849f78f7 and 1235a7435e orphaned
  ctr_set_osd_msg(). Reinstate it instead of removing, since it's
  effectively the same as calling font_driver_render_msg, but with
  checks.
* remove sp from clobber list in inline assembly
2025-03-16 14:00:35 +00:00
LibretroAdmin a9a9075f5f (Qt) Cleanups 2025-02-10 23:06:32 +01:00
LibretroAdmin c57c4fbd1a Style nits 2025-02-10 13:59:25 +01:00
LibretroAdmin 9267771422 * Less passing around of settings pointer
* Less calls to netplay_driver_ctl in runloop_iterate
2025-02-09 20:12:10 +01:00
LibretroAdmin 4faed7a84f Less passing around of settings_t pointer 2025-02-09 18:56:50 +01:00
LibretroAdmin f71181d1c1 * Style nits
* task_database - db_crc allocated variable does not need to be of size PATH_MAX_LENGTH size
2025-02-09 17:49:44 +01:00
sonninnos 0d46073bb9
Add mute on rewind option (#17541) 2025-02-09 14:24:14 +01:00
Viačasłaŭ 5b9d5a9086
Buildfix for Debian 12 (#17522) 2025-02-06 02:10:06 +01:00
Viačasłaŭ 45586e83da
(PipeWire) Pass the new_rate to the audio driver (#17508)
Set the supported sample rate after initialization.
Also a few minor fixes.
2025-02-03 04:30:02 +01:00
Viačasłaŭ f84f829957
(PipeWire) reset playback buffer on stopping (#17449)
* Fix compile warnings
2025-01-21 02:40:15 +01:00
Viačasłaŭ d3a879638d
Fix PipeWire freezing (#17446)
* Fix freezing after restarting pipewire service
* Rewrite the logic for starting/stopping stream
* Reduce boilerplate code
2025-01-20 21:38:11 +01:00
LibretroAdmin 4020326f58 Style nits 2025-01-20 04:37:27 +01:00
LibretroAdmin a6c8c6c7ef Cleanups 2025-01-19 23:57:15 +01:00
LibretroAdmin 3549d8378c Style nits 2025-01-19 22:15:34 +01:00
LibretroAdmin 13bc41facc Buildfixes 2025-01-19 20:37:04 +01:00
LibretroAdmin cde82f532c * Naming convention changes for variable names/function arguments
* Try to fit lines within ANSI 80-char limit
2025-01-19 20:19:14 +01:00
Kreijstal 90d3e0be17
Allowing compilation on msys2 (#17369)
## Description
Before there was no clear way of running msys2, and even if there was, there is no guarantee of it working, well I fixed it, and added a CI, so that we can always know if it works. Furthermore I added 2 targets more: UCRT64 and CLANG64, yes, compilation with clang64 means we can also compile with clang for windows on arm :D, plus clang has better error messages overall, anyway.

## Related Issues

#17367

## Reviewers
Anyone, it's my first PR here.
2025-01-18 01:00:09 +01:00
LibretroAdmin b211adaaca Function argument name standardization 2025-01-17 19:55:32 +01:00
Viačasłaŭ Chalikin 13bd14747a PipeWire improvements
* Use given latency
* Fix (non)blocking microphone
* Mute microphone on startuo
* Reset buffer when the microphone stops
* Delete client-info handler
* Refactor the naming conventions, styling
2025-01-14 21:31:32 +01:00
LibretroAdmin 47d888364d Standardize len variables - argument should always be named 'len',
while local len variables should have '_' prefix
2025-01-13 21:53:49 +01:00
Viačasłaŭ 1d6badb1f1
(PipeWire) Fix speedup in the video threaded mode (#17406) 2025-01-13 04:36:17 +01:00
Viačasłaŭ 9886944f32
Fix launch app when pipewire service is stopped (#17365) 2025-01-07 18:31:45 +01:00
Viačasłaŭ 3a4330238a
Fix PulseAudio freeze (#17316)
* Fix freeze when close app/content after stopping/restarting
  pulse service
* Fix pa->devicelist memleak
* Logging improvements
2024-12-30 23:08:45 +01:00
LibretroAdmin 1e656261b0 Local len variables need to have '_' prefix 2024-12-30 14:03:58 +01:00
Viačasłaŭ 4124ca49e3
PipeWire improvements (#17305)
* Fix freeze when pipewire service is stopped/restarted
* Fix `device_list `memleak
* Refactor pipewire drivers
2024-12-29 18:57:54 +01:00
Eric Warmenhoven 3989a62f60
Apple buildfix (#17294) 2024-12-27 20:36:12 +01:00
LibretroAdmin 18c85b5ccd Cleanups -
* Less string copies
* Some general cleanups
* Add extra param to runloop_message_queue_push so we can pass size_t
of the message
* Consistent conventions for local variable usage for certain things
2024-12-27 15:13:45 +01:00
Viačasłaŭ 284161057d
Add microphone support via PipeWire (#17279) 2024-12-23 13:40:35 -08:00
libretroadmin 442b9bc3da Syntax style nits 2024-12-23 05:44:40 +01:00
LibretroAdmin 739f2ff55c
Reduce calls to path_remove_extension - use fill_pathname instead (#17270)
* Reduce calls to path_remove_extension - use fill_pathname instead

* More fill_pathname usage
2024-12-20 21:40:58 -08:00
Viačasłaŭ fbe135fb60
Fix displaying PipeWire help label, styling (#17274)
Update README
2024-12-20 18:51:48 -08:00
Viačasłaŭ 0ae2b87c57
(Audio/PipeWire) Fill rest buffer with silence. (#17272)
Formatting, fix typo
2024-12-20 07:59:43 -08:00
Viačasłaŭ 963ffc0e77
Add PipeWire audio driver (#17271) 2024-12-19 22:11:27 -08:00
libretroadmin 2809421d4e Revert "static variables are initialized to '0' automatically as per C rules"
This reverts commit 2a0984b6e4.
2024-11-19 03:03:13 +01:00
libretroadmin 2a0984b6e4 static variables are initialized to '0' automatically as per C rules 2024-11-18 15:33:34 +01:00
libretroadmin 62fd7e105d audio_driver_sample - fix potential crash 2024-11-18 14:21:18 +01:00
Viačasłaŭ 3019b926c2
Fix typos (#17068) 2024-10-01 17:36:33 -07:00
Eric Warmenhoven 6e2f0a4f30
apple: don't allow opening sdl2 microphone if not using sdl2 audio (#16989) 2024-09-11 12:33:41 -07:00
libretroadmin c961e79a0c Variable simplification 2024-09-10 06:25:00 +02:00
libretroadmin 3c23b2d04a (WASAPI) wasapi_write now one function, no more leaf function calls 2024-09-10 04:45:28 +02:00
libretroadmin 59ddb6731f Refactor WASAPI driver
- Use flags instead of bools
- Rewrite wasapi_write function
2024-09-10 04:12:10 +02:00
libretroadmin b8391e233f * PATH_MAX_LENGTH redefined from 4096 to 2048
* Massive reduction in heap space allocation, going from settings struct
264kb to 119Kb
* Use NAME_MAX_LENGTH for base paths/names, etc
* Use DIR_MAX_LENGTH for directory sizes
2024-09-09 05:47:32 +02:00
Eric Warmenhoven abffbb95d4
Allow compiling SDL2 drivers using griffin (#16843) 2024-08-06 17:03:36 -07:00
libretroadmin afc9cb509a CXX_BUILDFIX buildfixes 2024-07-20 19:42:45 +02:00
libretroadmin 38f278519c Remove some header includes 2024-06-16 21:37:46 +02:00
libretroadmin 1d47d24b5f (audio/common) Fix header includes 2024-06-15 16:55:01 +02:00
libretroadmin 8ef14e53b6 audio_driver_mixer_extension_supported - don't use string_list 2024-06-15 03:55:44 +02:00
libretroadmin 55b4ceec70 (WASAPI) WASAPI settings did not show up anymore 2024-06-13 03:53:20 +02:00
Mats a0208dd56c (WASAPI) Only write when running and fix deadlock 2024-06-04 13:26:08 -05:00
sonninnos 5e79dd4569
Bring back audio toggling on menu toggle (#16467) 2024-04-25 10:10:39 -07:00
libretroadmin a4212061d4 Cleanup some unused variables 2024-04-06 20:12:15 +02:00
libretroadmin f0cc87189c wasapi_select_device_format - cleanup 2024-04-06 19:01:12 +02:00
libretroadmin a0dc153508 Fix C89_BUILD 2024-04-06 18:52:52 +02:00
sonninnos aa1d47ad0f
(WASAPI) Buffer cleanups (#16057) 2023-12-28 18:56:28 -08:00
zengwei2000 df05f6e0eb
fix the Memory leak: psp (#16016)
fix the Memory leak: psp

Signed-off-by: zengwei zengwei1@uniontech.com

Signed-off-by: zengwei zengwei1@uniontech.com
2023-12-20 16:24:35 -08:00
sonninnos 598a0c0d37
(WASAPI) Shared buffer refactor + cleanup (#15929) 2023-11-19 08:44:25 -08:00
sonninnos 7661bde711
Count audio samples in stats when rate control is disabled (#15669) 2023-09-05 05:35:57 -07:00
sonninnos eb0124d6d7
(WASAPI) More logging cleanups (#15619) 2023-08-18 15:33:47 -07:00
libretroadmin 0a96f9595c Explicit typecasts to bools for flags 2023-08-16 04:18:55 +02:00
libretroadmin cb0653137f Style nits/cleanups 2023-08-16 02:40:59 +02:00
libretroadmin bd7a0f7f0a Explicit typecast to bool for some flag to bool conversions 2023-08-16 00:16:03 +02:00
libretroadmin 40a0ced947 Be consistent with frontend_driver_get_core_extension - core extension
var should at most be 16 chars big, make only one exception once
2023-08-15 15:01:57 +02:00
libretroadmin af03e555d6 Fix - should look for these headers in system directories 2023-08-14 23:39:15 +02:00
libretroadmin c8e6506687 Fix --disable-menu errors 2023-08-14 23:36:19 +02:00
sonninnos 9af0d5f5ef Remove microphone driver disabled logging 2023-07-25 19:47:09 +02:00
Ethan O'Brien 71fe2624d2 Cleanup 2023-07-14 21:24:15 +02:00