Commit Graph

178 Commits

Author SHA1 Message Date
Lynix
4ee4092bba Cleanup includes 2023-12-02 13:56:24 +01:00
Lynix
dc9c1e14c4 Allow to use env vars to override module configs 2023-12-02 13:56:23 +01:00
Lynix
ba7d2221d0 Audio/SourceEmitter: Throw exception if audio source couldn't be created 2023-12-02 13:56:23 +01:00
Lynix
36dcc03c11 Audio/OpenALDevice: Improve error when buffer/source creation fails 2023-12-02 13:56:06 +01:00
Lynix
150787971a Audio/Music: Fix possible data-race in GetPlayingOffset 2023-11-29 22:26:19 +01:00
Lynix
079f153640 Minor fixes 2023-11-28 20:05:09 +01:00
SirLynix
4b8a475bbd Split error macro into two versions (format vs non-formating) to allow format checking at compile-time 2023-11-02 15:18:03 +01:00
SirLynix
21680171a2 Replace GetPlatformEndianness() by PlatformEndianness constexpr
from nazarautils
2023-09-08 09:13:04 +02:00
SirLynix
bd53245f42 Core/StringExt: Don't pass string_view by ref
https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/
2023-08-24 08:23:14 +02:00
SirLynix
a741672a51 Allow error message to be formatted 2023-08-15 01:10:01 +02:00
SirLynix
816d9d1174 Allow to setup/override module configuration from commandline 2023-07-30 12:44:43 +02:00
SirLynix
bf0d7674c7 Core: Add thread extension functions 2023-06-07 13:35:40 +02:00
SirLynix
b9c1559d97 Random code cleanup 2023-06-05 18:05:16 +02:00
Jérôme Leclercq
1a55b550fb Improve math module (#396)
* Improve math module

- Mark almost everything constexpr
- Equality (a == b) is now exact, down to the bit level. If you want approximate equality use the new ApproxEqual method/static method
- Rename Nz::Extend to Nz::Extent
- Removed Make[] and Set[] methods in favor of their static counterpart and operator=
2023-06-02 22:30:51 +02:00
SirLynix
dfe6b2ddcf Make use of the new EnumMap class 2023-05-30 12:32:37 +02:00
SirLynix
6fd90d63ef Fix check-files 2023-03-21 13:21:49 +01:00
SirLynix
9b4d297c04 Update includes for new NazaraUtils version 2023-03-19 13:01:56 +01:00
SirLynix
f98cbcd00a Copyright year update 2023-01-22 17:41:18 +01:00
Jérôme Leclercq
dd421a6385 Replace float/UInt64 durations by a more precise Time class (#388)
Improve Clock class with atomic RestartIfOver method and allows to choose required precision
2022-12-29 21:31:46 +01:00
SirLynix
22ae68fdca Audio/Sound: Fix crash when destroying moved Sound 2022-12-24 11:55:27 +01:00
SirLynix
b79718404c Fix OpenAL extensions functions 2022-12-06 12:54:22 +01:00
Jérôme Leclercq
3d05b1fb44 Fix missing include 2022-12-06 12:00:59 +01:00
SirLynix
2dd0e7d9c8 Audio: Add an option to directly link OpenAL 2022-12-06 07:48:03 +01:00
SirLynix
9cd7976a91 Remove "MemoryManager" and very old code 2022-09-24 14:25:52 +02:00
SirLynix
6bf4ccaae1 Core/ParameterList: Rework Parameter getter using Result 2022-09-09 13:47:06 +02:00
SirLynix
72d908817d Fix compilation with unity build 2022-09-07 19:28:41 +02:00
SirLynix
47cb878f9d Major ResourceLoader rework (using Nz::Result) 2022-09-07 13:31:04 +02:00
Jérôme Leclercq
a237102de9 Music: fix concurrent access on destruction 2022-06-07 22:47:54 +02:00
SirLynix
16922a9519 Audio/Music: Fix datarace 2022-06-07 20:18:26 +02:00
Jérôme Leclercq
03e2801dbe Split engine to packages NazaraUtils and NZSL (#375)
* Move code to NazaraUtils and NZSL packages

* Reorder includes

* Tests: Remove glslang and spirv-tools deps

* Tests: Remove glslang init

* Remove NazaraUtils tests and fix Vector4Test

* Fix Linux compilation

* Update msys2-build.yml

* Fix assimp package

* Update xmake.lua

* Update xmake.lua

* Fix shader compilation on MinGW

* Final fixes

* The final fix 2: the fix strikes back!

* Disable cache on CI

* The return of the fix™️
2022-05-25 19:36:10 +02:00
Lynix
3c8b4c2587 Audio: Fix loading of OpenAL 2022-05-08 15:44:59 +02:00
Lynix
17b1c2407d Audio/AudioSource: Add GetSampleOffsetAndLatency 2022-05-08 15:44:41 +02:00
SirLynix
41712a3f18 Minor fixes 2022-05-08 13:21:20 +02:00
SirLynix
4794073b73 Audio: Add support for AL_SOFT_source_latency 2022-05-08 13:20:55 +02:00
SirLynix
21a38fb31b Audio: Add some fixes and tests 2022-05-06 12:41:02 +02:00
SirLynix
81085508ec Minor fixes 2022-05-05 20:20:44 +02:00
SirLynix
e1d2063bf0 Audio/DummyAudioSource: Fix status after Stop() call 2022-04-23 16:43:08 +02:00
SirLynix
947cc96923 Audio/Music: Fix Play() call after music stopped 2022-04-21 18:25:42 +02:00
SirLynix
b7493f01bf Formats: Rename parameter to skip loader
From SkipNative to SkipBuiltin
2022-04-08 13:35:47 +02:00
SirLynix
66ff6cfa81 Minor fixes 2022-04-04 08:17:03 +02:00
Lynix
5cd9f6fdcd Minor fixes 2022-04-02 21:18:04 +02:00
Jérôme Leclercq
04dfd25c74 CI: Try to build NazaraCore on macOS 2022-03-19 23:29:19 +01:00
Lynix
dc24ff33a4 Audio: Add sound stream test 2022-03-19 12:36:55 +01:00
Lynix
45f0825a6e Audio: Final fixes 2022-03-19 12:16:52 +01:00
Jérôme Leclercq
82641c6653 Audio: Add dummy device (in case OpenAL fails to load) and unifiate unit tests 2022-03-18 19:03:57 +01:00
Jérôme Leclercq
667a4a0c08 Audio: Handle AudioBuffer compatibility
OpenAL buffers are shared between contextes
2022-03-17 18:15:53 +01:00
Jérôme Leclercq
01061380ee Audio/AudioDevice: Improve GetListenerRotation 2022-03-17 18:15:53 +01:00
Jérôme Leclercq
6165b3a101 Audio: Rewrite audio module 2022-03-17 18:15:53 +01:00
Jérôme Leclercq
6bd9f1a9e4 Add unity build support 2022-03-15 12:44:21 +01:00
Jérôme Leclercq
8a3a8547dc Add light support (WIP) 2022-02-02 12:55:39 +01:00