Commit Graph
68 Commits
Author SHA1 Message Date
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årdandGitHub 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årdandGitHub 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
Unknown W. Brackets fdc28b16fb UI: Respect loop info for menu music.
A good example for this is Wipeout Pure, which sounds much better when it
loops using the sample looping data.
2019-08-17 13:39:11 -07:00
Henrik Rydgård b47251dbd4 Even more cleanup of RIFFReader 2017-12-04 17:34:47 +01:00
Henrik Rydgård 1c0a0fefdb Remove write support from chunk_file, rename to RIFFReader 2017-12-04 17:27:47 +01:00
Henrik Rydgård df6ce90c84 When what we need is a shared_ptr, we should just go ahead and use one.
One of the top crashes reported in the Play Console is a ManagedTexture crash, so seeing if this might help.
2017-05-18 13:28:56 +02:00
Henrik Rydgård 440e72d250 Clean up among the logs. Remove MASTER_LOG. 2017-03-06 13:10:23 +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
Henrik Rydgard 7182c34c1e Quick soft fadeout when menu background audio stops playing 2017-01-28 10:38:50 +01:00
Unknown W. Brackets 7127de302e Avoid some unused variable warnings. 2016-08-05 10:48:18 -07:00
Henrik Rydgard 4197148dc4 Add some paranoid checks hoping to fix crashes reported in Google Play developer console. 2016-04-09 18:27:35 +02:00
Henrik Rydgard da1a04be8d Make the workqueue slightly safer. Put g_gameInfoCache on the heap.
Cherry-picked from #8592
2016-02-28 12:39:47 +01:00
Henrik Rydgard e1ebc12d7f Improve reliability of "menu background music". Fix issue with mixed navigation mentioned in #8565 2016-02-13 10:55:29 +01:00
Henrik Rydgard 682472c5b5 Allow mono atrac3 for "game menu backgrund audio". Fix possible data race. 2015-10-03 23:18:54 +02:00