Henrik Rydgård
5921b9d041
Fix stereo MP3s as custom achievement sound effects
2024-07-17 14:37:15 +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
1b366afa35
Refactor: Change *outBytes to *outSamples in AudioDecoder::Decode.
2024-04-16 15:31:11 +02:00
Henrik Rydgård
d402068745
Fix mono output from Atrac decoders. (sceAtrac*MOut* functions)
2024-04-15 11:50:32 +02:00
Henrik Rydgård
5ed77b58ca
Improve the AudioDecoder API to avoid having to call a function to get the bytes consumed
2024-04-11 16:49:00 +02:00
Henrik Rydgård
bf280eb410
Remove "SetExtraData" from AudioDecoder, pass in the data at creation instead
2024-04-11 14:39:59 +02:00
Henrik Rydgård
1805910fac
More refactoring
2024-04-10 12:22:58 +02:00
Henrik Rydgård
1938d3b876
More prep for plugging in alternate audio decoders
2024-04-10 12:14:58 +02:00
Henrik Rydgård
862fb951f1
Add support for loading mp3 files as UI sound.
...
Fixes #18136
2024-04-09 19:15:49 +02:00
Henrik Rydgård
9979372a97
Assorted paranoia, get rid of an allocation in the audio loop
2024-01-29 10:37:38 +01:00
Henrik Rydgård
884c366692
Fix some longstanding issues with the GameInfoCache and optimize away double work
2024-01-28 16:23:27 +01:00
Henrik Rydgård
1a1b79606b
BackgroundAudio Atrac3+: malloc a few extra bytes. Fixes crash reported by Verymelon
2024-01-26 19:42:25 +01:00
Henrik Rydgård
e8f70594a4
Implement running the game in the background on the pause screen. Fix some bugs.
2023-12-11 12:41:44 +01:00
Henrik Rydgård
cbbaf148f4
Don't crash from incomplete wav files
2023-09-27 12:31:17 +02:00
German Semenov
c27481d637
GPU, VFS, UI: Fixed minor memleaks
2023-09-15 12:23:54 +03:00
Henrik Rydgård
e5a0788952
RetroAchievements audio customization: Fix checks for WAV file format
2023-09-11 22:55:59 +02:00
Henrik Rydgård
de20a5692f
Add support for 8-bit and mono WAV files. More fixes.
2023-07-16 15:04:21 +02:00
Henrik Rydgård
18fbe7afe8
Log if we fail to load default samples
2023-07-16 14:25:46 +02:00
Henrik Rydgård
bd4f3f8953
Start work on making sound effects customizable
2023-07-16 12:56:46 +02:00
Henrik Rydgård
614def8f5f
Thread safety fix in sfx mixer
2023-07-12 20:09:52 +02:00
Henrik Rydgård
af92430b18
Achievement Unlocked and Leaderboard Submitted sound effects
2023-07-12 19:55:53 +02:00
Henrik Rydgård
f1ff12784a
Allow flexible sample rate for UI sound effects
2023-07-12 17:55:49 +02:00
Henrik Rydgård
19f4eadeb1
Call the sound effect mixer directly from Mix instead of pushing the samples from background audio.
2023-07-12 17:55:46 +02:00
Henrik Rydgård
349b73acec
Move the resampler usage to a common file, AudioCommon. ( #17176 )
...
* Move the resampler usage to a common file, AudioCommon.
Ports that don't want to use the resampler can now simply exclude that
file and provide their own implementation. Next up, libretro will be
converted to do it that way.
* Android.mk typo
* libretro makefile fix
* libretro buildfix
* libretro: try a different approach for the temporary solution
* duh
* double duh
2023-03-24 17:19:57 +01:00
Henrik Rydgård
e95662cebf
Separate out the core interface around the resampler, in order to move it out from __sceAudio.
2023-03-24 14:48:53 +01:00
Henrik Rydgård
8421c1e2a1
Move g_backgroundAudio.Play to NativeUpdate
2023-03-24 14:48:49 +01:00
Henrik Rydgård
3b39e9e068
Turn the VFS into a class, to be able to reuse it for other purposes.
2023-03-06 16:42:47 +01:00
Unknown W. Brackets
b1e31d89e1
Audio: Correct protection against time skew.
2021-10-10 15:05:51 -07:00
Unknown W. Brackets
b77695c760
Audio: Protect against time skew.
...
It might be possible a clock is adjusting backwards slightly after a time
update, and this could've caused sz to become negative.
Based on crash reports.
2021-10-09 08:24:54 -07: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
Unknown W. Brackets
30bd0e60c7
UI: Avoid audio locks where possible.
...
In case of thread contention, avoid locking if not necessary. See #13469 .
2021-02-15 18:21:32 -08:00
Henrik Rydgård
caa58c6907
Remove a completely unnecessary check in BackgroundAudio.cpp that caused glitching at 44.1khz.
...
Fixes #14096
2021-02-10 00:20:13 +01: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
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
9e41fafd0d
Move math and some file and data conversion files out from native to Common.
...
Buildfixing
Move some file util files
Buildfix
Move KeyMap.cpp/h to Core where they belong better.
libretro buildfix attempt
Move ini_file
More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
054acf768c
Don't cache time in a variable.
...
A little weirdness in the code that has stuck around for a long, long
time. It's really not necessary and mostly just confusing.
2020-09-24 23:52:43 +02:00
Henrik Rydgård
ccc0331279
Move timeutil to Common. (Experiment to see how much work it is to move these).
2020-08-15 20:53:08 +02:00
Henrik Rydgård
c41f875df4
Remove base/logging.h in a whole lot more places.
2020-08-15 19:09:00 +02:00
Henrik Rydgård
b43698a13d
Remove most instances of base/logging.h from Common, Core, GPU, more
2020-08-15 19:08:44 +02:00
Henrik Rydgård
14532847c7
Fix some minor issues found by address-sanitizer on Linux
2020-08-11 22:28:36 +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
Henrik Rydgård
434b717ba0
Add a couple of more sounds. Rename some vars.
2020-08-03 12:08:11 +02:00
Henrik Rydgård
55eb2844fd
Hook up a couple more sounds. Unfortunately clickable back buttons now play both back and confirm sounds...
2020-08-03 12:08:11 +02:00
Henrik Rydgård
5423f76e25
Hook up the first UI sound, make it play.
2020-08-03 12:08:11 +02:00
Henrik Rydgård
b30be913c0
Read in WAV files for UI sounds
2020-08-03 12:08:11 +02:00
Henrik Rydgård
e13b53e02c
BackgroundAudio: Switch to a heap allocated buffer.
2020-08-03 10:43:26 +02:00
Henrik Rydgård
6f02844b5b
Consolidate BackgroundAudio.cpp into a class
2020-08-03 10:43:26 +02:00
Henrik Rydgård
22ee875ffc
Fix nasty race condition with menu background audio. Fixes #12365
2019-09-27 23:53:31 +02:00
Henrik Rydgård
701d740207
Add a comment. See issue #12365
2019-09-27 23:34:36 +02:00