104 Commits

Author SHA1 Message Date
Henrik Rydgård af30c04711 Rename 'chans' to g_audioChans 2025-04-15 11:18:53 +02:00
Henrik Rydgård 4e25f44eef Rename some module-related functions to include HLE where appropriate 2025-03-31 11:17:50 +02:00
Henrik Rydgård 0f840e6240 Move JPEG error codes to the big enum, some include cleanup 2025-03-21 20:44:46 +01:00
Henrik Rydgård 28b2c7f540 HLE log rename part 1: Remove duplicate log functions. Return type should be determined by metadata. 2025-01-29 09:45:39 +01:00
Henrik Rydgård 2b5b2a8fa5 Add a "pedantic" self-check mode, improve logging some more. 2025-01-20 12:20:21 +01:00
Henrik Rydgård ff8b51e6b7 Some logging cleanup in kernel 2025-01-19 14:54:09 +01:00
Henrik Rydgård 2e68d4f638 Clean up a lot of logging in psmf, audio, more 2025-01-19 13:56:51 +01: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
AdamN bbe2c341ed oops 2024-04-20 12:41:27 +07:00
AdamN 1cf7254cb0 Update sceAudio.cpp 2024-04-20 12:06:49 +07:00
Unknown W. Brackets d6ce03e1db Audio: Correct log function name. 2023-12-29 09:42:23 -08:00
Henrik Rydgård a22450320b Some minor changes and comments after memory profiling 2023-12-08 12:22:12 +01:00
Henrik Rydgård d586ec0d5e Don't create Host objects except in headless/unittest 2023-03-25 10:47:01 +01: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 c70c8cad6e Makes a distinction between blocking and non blocking modes. 2020-11-22 02:06:15 +08:00
Henrik Rydgård 886a8b1ac6 Remove Timer.cpp/h. Move various collections into Common/Data/Collections. 2020-10-05 21:05:23 +02:00
Henrik Rydgård 27c059bf9e Really no need to call clear() in the constructor for AudioChannel.
However if this helps #13271, something is very wrong...
2020-08-12 00:22:54 +02:00
Unknown W. Brackets b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets 4c46867230 Audio: Avoid exposing fixed size queue in header. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets 4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
shenweip d195cba837 Flush audio buffer when a transmission is completed. 2020-07-31 17:10:00 +08:00
shenweip c7e2eba231 Add basic Microphone support on Windows. 2020-07-31 10:24:17 +08:00
Unknown W. Brackets 20ad7f2914 Audio: Track SRC frequency.
sceAudioSetFrequency is kernel mode only, and it sounds like it changes
the audio controller clock (didn't test.)  SRC only affects the SRC
channel.

Currently, this doesn't actually use the sample rate yet, but at least
it's tracked appropriately.
2019-06-30 23:09:46 -07:00
Unknown W. Brackets 9ef3973b49 Audio: Correct sceAudioChRelease return value. 2019-06-30 23:09:07 -07:00
Unknown W. Brackets 7d2b332b2d Audio: Improve error messages for sample counts. 2019-06-30 16:39:14 -07:00
Unknown W. Brackets 2c20567624 Audio: Better errors on Output2/SRC reserve.
The frequency handling probably doesn't work, though.
2019-06-23 08:38:22 -07:00
Unknown W. Brackets c67988d2ce Audio: Correct errors on Output2/SRC release. 2019-06-23 08:17:00 -07:00
Chris Burgener 7d089a0f76 Clean up various files 2016-09-03 19:23:17 -04:00
Unknown W. Brackets fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Henrik Rydgard bfa52e61a3 Some games spam sceAudioGetChannelGetLength, reduce loglevel to VERBOSE to ease debugging 2015-03-01 15:33:35 +01:00
Lioncash 4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
raven02 950e404442 Fix a typo 2014-04-22 14:31:34 +08:00
raven02 0ca4ec02cd Implment sceAuduo routing mode 2014-04-19 06:47:54 +08:00
Unknown W. Brackets 05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
raven02 32cae21bb7 sceAudio : better logging 2014-02-02 23:45:23 +08:00
Unknown W. Brackets 5ff589a0d9 Minor logging improvements in sceAudio. 2013-11-25 01:02:59 -08:00
Unknown W. Brackets 50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Henrik Rydgard 324cde5a79 Let's actually use the log category mechanism. A first step. 2013-09-07 21:19:21 +02:00
Unknown W. Brackets 6804f239b4 sceAudioOutputPannedBlocking() bad volume check. 2013-09-05 01:01:57 -07:00
Unknown W. Brackets 19c4c20f46 Correct sceAudioOutput2GetRestSample().
Should be samples, not bytes.
2013-09-05 00:50:20 -07:00
Unknown W. Brackets 8f25829b06 Change sceAudioOutput* unreseved ch errors.
Tests show it should be this other error code.
2013-08-28 22:35:05 -07:00
Henrik Rydgard ee37d51c4b Just some formatting/cleanup 2013-08-24 11:56:40 +02:00
Unknown W. Brackets ddc2c15ce8 Remove some unsigned < 0 comparisons. 2013-07-26 22:12:12 -07:00
oioitff 67154f69eb Revert fix in #2092 2013-06-06 06:10:26 +08:00
Unknown W. Brackets 61f2fc4d3b Return error to blocked audio threads on release. 2013-06-05 12:20:07 -07:00
oioitff c9845054e8 Fix choppy cg audio, bgm and even some
missing bgm, voice, se.
2013-06-05 22:52:05 +08:00
Unknown W. Brackets 06c19622d5 Fix some init/type warnings. 2013-05-31 23:14:29 -07:00
Unknown W. Brackets 839ff0a795 Correctly reset audio channels on shutdown.
Fixes #1876.
2013-05-21 00:59:05 -07:00