36 Commits

Author SHA1 Message Date
Henrik Rydgård
1280fcc581 Beaterator: Prevent hanging when trying to record audio by switching thread in sceUsbMicWaitInputEnd 2024-10-15 15:30:37 +02:00
Henrik Rydgård
65a088537f Microphone queuebuf: Switch to int instead of u32 to simplify length checks. No more crashes, but it hangs
see issue #19528
2024-10-15 15:30:37 +02:00
Henrik Rydgård
e51c58716b Fix minor code issues flagged by PVS-Studio and reported by alphrixus. 2024-10-10 14:10:30 +02:00
Henrik Rydgård
e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård
87d0c21f14 Make proper requests for the external hardware commands (gps, microphone, camera) 2023-03-22 23:52:25 +01:00
Henrik Rydgård
d3955b42bb Rename some system functions, merge the Launch* ones.
android launchurl buildfix
2023-03-21 12:22:59 +01:00
Unknown W. Brackets
ff3e70be2f UsbMic: Fix copy on resize shrink. 2022-12-30 21:31:33 -08:00
Unknown W. Brackets
1a85370c0a UsbMic: Avoid some temp buffers, check range. 2022-12-30 21:29:26 -08:00
Unknown W. Brackets
13ec384dbe Build: Explicitly include ppsspp_config.h.
This adds it to all files that use it.  Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
Henrik Rydgård
93fd62f54b Merge pull request #13832 from unknownbrackets/events
SaveState: Make event restoring more obvious
2021-02-15 23:39:42 +01:00
Unknown W. Brackets
9d22297a90 Windows: Use CommonWindows more consistently.
Also, make sure WinSock2.h is included beforehand where it's needed.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
06f8ab5a49 SaveState: Make event restoring more obvious.
We still must restore all events, but everything can be taken care of
during the save state load.
2020-12-28 13:29:19 -08:00
shenweip
6afeed877c Build fixes 2020-11-24 21:36:17 +08:00
shenweip
be0449d16d Fixes state. 2020-11-24 17:28:31 +08:00
shenweip
9a85ab2c43 Writes target buffer address in multiple times.
Would be better to calculate read data length.
2020-11-24 17:15:26 +08:00
shenweip
235919f905 Try to implement some related funcs.
Marked as UNTEST.
2020-11-23 17:13:55 +08:00
shenweip
730d9f8fd9 Clean up. 2020-11-23 15:49:14 +08:00
shenweip
f2bd0b9f6f Implements sceUsbCamGetMicDataLength. 2020-11-23 14:07:11 +08:00
shenweip
c70c8cad6e Makes a distinction between blocking and non blocking modes. 2020-11-22 02:06:15 +08:00
shenweip
aac4cbb1dc Changes the way of reading microphone data.
Feeds the microphone buffer continuously(Windows) and overwrites old data with new data when the buffer has no remaining space.
2020-11-22 01:17:25 +08:00
sum2012
c223c18afe Fix crash in sceusbmic on load old staus then save again
Fix #1358 again
2020-11-15 13:16:29 +08:00
Henrik Rydgård
f3c05cb81a Merge pull request #13575 from Florin9doi/android_audio_record2
[Android] Audio record using OpenSL
2020-10-31 10:25:14 +01:00
shenweip
eb5c22bbae SaveState:Don't register the event during Dostate. 2020-10-27 19:50:27 +08:00
Florin9doi
6531c7f4f8 [Android] Retrieve isMicStarted from AndroidAudio state 2020-10-24 20:16:22 +03:00
Florin9doi
9379fe1399 [Android] Audio record using OpenSL 2020-10-24 19:51:30 +03:00