Commit Graph
51 Commits
Author SHA1 Message Date
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
Unknown W. Brackets e0f85a9c6b Native merge part 1: skip native/ in includes. 2015-09-06 12:19:33 -07:00
Unknown W. Brackets 58b5a74748 Allow audio to be enabled in the menu.
Previously, if it was disabled at first, enabling it wouldn't work - you
still would not get the audio.
2015-08-30 10:05:13 -07:00
Henrik Rydgard 3587b36f86 Minor cleanups in BackgroundAudio and ARM64 vtx dec. Update native. 2015-06-22 00:09:02 +02:00
Unknown W. Brackets be26455f73 Fix size of first bg audio read.
Otherwise we get static at the start.
2015-02-28 13:29:51 -08:00
Unknown W. Brackets d2960b23e8 Stop background audio if disabled while playing. 2015-02-28 12:42:32 -08:00
The Dax 31fafe3b32 If audio is disabled, don't play background audio. 2015-02-23 03:07:34 -05:00
Unknown W. Brackets a8b59e171b Fix a few type comparison warnings. 2015-02-22 13:31:23 -08:00
Henrik Rydgard 2792602252 Pass the game selection screen audio through the resampler. Fixes #7316 . 2015-01-29 14:58:03 +01:00
Unknown W. Brackets d4e8bd96af Handle disk full more properly in sceIoWrite(). 2014-11-02 10:55:27 -08:00
Henrik Rydgard e539c7009f Hook up DX9 backend. Not really working though, it seems. 2014-08-22 20:55:12 +02:00
Sacha cd20288d99 Fix some compiler warnings. 2014-07-17 00:49:58 +10:00
Unknown W. Brackets f39b1625af Add a safety check. 2014-06-22 10:05:27 -07:00
Unknown W. Brackets 47ad97617e Play AT3 files in background audio too.
Fixes 3rd Birthday and PQ2, at least.
2014-06-22 09:55:14 -07:00
Henrik Rydgard 29e9d0caa3 More focus handling issue fixing 2014-06-22 18:32:57 +02:00
Henrik Rydgard 3b55d1190d BG music: Zero the sample buffer on decode fail 2014-06-22 17:57:12 +02:00
Henrik Rydgard 3b4e30d50f bg audio: Sprinkle on some thread safety 2014-06-22 17:26:15 +02:00
Henrik Rydgard f8e32f4a71 Just zero the buffer if we failed to open the file 2014-06-22 17:18:40 +02:00