Commit graph

142 commits

Author SHA1 Message Date
Henrik Rydgård
a5fdf3d05b Add samplerate argument to NativeMix 2023-03-24 14:48:53 +01:00
Henrik Rydgård
1cd34f9d2b Another buildfix attempt 2022-09-01 14:07:27 +02:00
Henrik Rydgård
7bced814ce Remove a per-audio-frame allocation in sceAudio 2022-09-01 11:59:35 +02:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00
Henrik Rydgård
886a8b1ac6 Remove Timer.cpp/h. Move various collections into Common/Data/Collections. 2020-10-05 21:05:23 +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
Henrik Rydgård
a9befb5496 Remove our custom atomics code entirely. 2020-05-17 13:11:36 +02:00
Henrik Rydgård
fce09f1865 Simplify how to get the debug stats from StereoResampler 2020-05-16 19:47:13 +02:00
Unknown W. Brackets
580c74c3e7 Audio: Remove latency setting.
This setting only changes some internal values that are shown in tests not
to match PSP behavior.  Removed, it now matches how the PSP works.

This setting wasn't really affecting any actual audio latency.
See #11844.
2020-04-08 00:08:19 -07:00
Unknown W. Brackets
4546db5635 Audio: Quick SRC resampling experiment. 2019-06-30 23:44:18 -07: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
fd8a0612fa SaveState: Initialize some memory that is saved.
At the very least, will help them compress better.  Also good not to leak
random memory.
2018-06-22 21:29:18 -07:00
LunaMoo
e78a644c00 spaces->underscores:) 2017-11-14 09:46:31 +01:00
LunaMoo
aba4a4dfdb Change KernelTimeNow to KernelTimeNowFormatted and return nice timestamp. 2017-11-14 07:16:40 +01:00
LunaMoo
2ff4104ddf Requested changes. 2017-11-14 06:33:49 +01:00
LunaMoo
f8f4acc316 Blah;p. Buildfix. 2017-11-14 06:03:52 +01:00
LunaMoo
e698414f9b Add an option to allow resetting video/audio dump on save/load state. 2017-11-14 05:12:27 +01:00
LunaMoo
99ab8dfc99 Use gameID and emulated timestamp for Avi/Wav dump filenames. 2017-11-14 03:53:45 +01:00
Henrik Rydgård
6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgard
ff2b6b3fca Assorted cleanup, UWP memory map fixes. PSPFlower runs in both 32-bit and 64-bit. 2017-03-23 10:02:28 +01:00
Henrik Rydgard
26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
LunaMoo
d832b4adfd Make sound recording sane and match video recording behaviour. 2017-02-24 05:36:44 +01:00
Chris Burgener
7d089a0f76 Clean up various files 2016-09-03 19:23:17 -04:00
Chris Burgener
645cb4d69e Add Audio Dumping to File 2016-09-03 14:05:38 -04:00
zhyk
fa6fe85dc3 Fix audio lag in Qt without SDL. 2016-02-10 23:34:38 +08:00
Unknown W. Brackets
2450724be2 Make Memory::Memcpy() execute memchecks directly.
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Henrik Rydgard
2792602252 Pass the game selection screen audio through the resampler. Fixes #7316 . 2015-01-29 14:58:03 +01:00
Henrik Rydgard
86cee103f3 Add audio debug stats dev tool. Increase audio buffer low watermark a bit, hopefully helping #7370. 2015-01-29 12:56:17 +01:00
Henrik Rydgard
1079c21e38 Update native, and update README with more 1.0 features 2015-01-27 00:18:04 +01:00
Unknown W. Brackets
db898aff23 Add a NEON method to apply the volume. 2015-01-11 14:23:41 -08:00
Unknown W. Brackets
ff4db2a8dd Log any change to 48 kHz audio on the psp side. 2015-01-11 14:23:41 -08:00
Henrik Rydgard
26e4cb4a21 More cleanup 2015-01-11 20:35:52 +01:00
Henrik Rydgard
e312d6b5fd Replace outAudioQueue with Dolphin's resampler. 2015-01-11 18:06:06 +01:00
Unknown W. Brackets
f5d5f7d3fa Use SSE shifts for high-vol channels. 2014-12-08 21:23:47 -08:00
Henrik Rydgård
38345a497f Merge pull request #7137 from lioncash/static
Core: Mark some module functions as static
2014-12-08 11:10:14 +01:00
Unknown W. Brackets
066ce50a12 Disable SSE clamping for certain volume levels.
Fixes sound in Tales of Phantasia.  Can improve later.
2014-12-08 02:06:25 -08:00
Lioncash
4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Henrik Rydgard
7de3ed109a Android x86 buildfix 2014-12-07 22:00:30 +01:00
Henrik Rydgard
1a1faeffd1 More audio microoptimization 2014-12-07 21:14:09 +01:00
Henrik Rydgard
28aa18953a Audio: Minor SSE2 optimization, just because 2014-12-07 20:23:47 +01:00
Unknown W. Brackets
5c470a1923 Remove bgm and sfx volume settings.
They don't actually work in all games, and this only confuses users.

Also, the default 7 lowers the volume of audio detected as bgm or sfx, but
not other volume.  This means that some audio may have played too loud in
some games by default, which will be fixed by this change.
2014-08-17 14:16:59 -07:00
Unknown W. Brackets
2d54c1cf4e Reset the audio rate on save/load state.
Should fix #6484.
2014-07-02 08:11:26 -07:00
Unknown W. Brackets
b73c1ba29b Reduce audio drift from 44.1kHz.
Although, not sure what the PSP's actual exact timing is...
2014-07-01 23:08:38 -07:00
Unknown W. Brackets
e505655c2b Fix a potential crash/race condition.
If anything is behind, it might run __AudioWakeThreads() within
reschedule, and get confused.
2014-07-01 08:02:34 -07:00
Unknown W. Brackets
5cd4a17e88 Fix periodic events drifting when eating cycles.
Need to set the next timer before rescheduling threads or etc.
2014-07-01 00:26:15 -07:00
Unknown W. Brackets
d8cff4509e Wake good pri threads immediately from audio. 2014-06-24 00:44:35 -07:00
raven02
eda3d48d53 Switch to low/medium/high audio latency mode 2014-04-27 22:11:26 +08:00