Commit Graph

3410 Commits

Author SHA1 Message Date
Lukas Dürrenberger
4fab55bf61 Update CMake integration for Opus 2024-06-11 14:28:32 +02:00
Sérgio Agostinho
4008cbfe6a Fix Opus audio sample rate to 48kHz 2024-06-11 13:56:14 +02:00
Lukas Dürrenberger
aaae80e7f4 Added Windows extlibs binaries for Opus and Opusfile. 2024-06-11 13:56:14 +02:00
Ferdinand Thiessen
1b09926a50 Fixed opus header after code was rewritten, make more use of RAII 2024-06-11 13:56:14 +02:00
Ferdinand Thiessen
d1774b21e6 Rewrote c99 like code to valid code, more changes to comply coding style 2024-06-11 13:56:14 +02:00
Ferdinand Thiessen
2a85734694 Rewrite of writeInt in opus writer to comply with codingstyle 2024-06-11 13:56:14 +02:00
Ferdinand Thiessen
af406d9201 Added static opus libraries and headers 2024-06-11 13:56:14 +02:00
Ferdinand Thiessen
90b6f3286e Opus: Replaced example file, coding style and rewrote writeInt in opuswriter 2024-06-11 13:56:12 +02:00
Ferdinand Thiessen
96d4b28bf2 Added example opus file, added libopus to android scripts. 2024-06-11 13:55:21 +02:00
Ferdinand Thiessen
7345d08d9c Added opus encoder support. 2024-06-11 13:55:19 +02:00
Ferdinand Thiessen
15bb2ef28e Added Opus sound file support, added SoundFileReaderOpus and FindOpus cmake Module 2024-06-11 13:54:23 +02:00
copyrat90
37ac80dbe5 Update documentation of creating Music and Cursor 2024-06-11 12:29:31 +02:00
vittorioromeo
571eee359f Fix speaker name conflicts with miniaudio macros in unity builds 2024-06-11 01:07:31 +02:00
vittorioromeo
eabea655c5 Update self-referential owner ptr when moving SoundStream 2024-06-11 00:36:09 +02:00
vittorioromeo
a303cee386 Consistently print errors in factory functions 2024-06-10 20:00:53 +02:00
Chris Thrasher
52fb26c6cd Fix optional comparison to integer value 2024-06-10 09:29:54 -05:00
Chris Thrasher
366b119963 Remove default empty state of sf::MemoryInputStream 2024-06-10 08:11:28 -05:00
Lukas Dürrenberger
3263ef8455 Disable problematic MSVC mutex flag temporarily 2024-06-09 22:51:47 -05:00
Lukas Dürrenberger
84a448f495 Update LLVM on Windows manually 2024-06-09 22:51:47 -05:00
Chris Thrasher
de8430bb29 Use std::optional rather than sentinel values 2024-06-09 20:48:55 -05:00
vittorioromeo
8acb9d9ab1 Fix inconsistencies in sf::Texture move and swap 2024-06-08 17:50:44 -06:00
vittorioromeo
52ce862a00 Remove default empty state of sf::Music 2024-06-08 20:54:10 +02:00
vittorioromeo
e7d67cfa2a More Shader.cpp example simplifications 2024-06-07 17:43:54 +02:00
vittorioromeo
dae09a912c Rewrite Shader.cpp example 2024-06-07 01:01:11 +02:00
Chris Thrasher
5484824948 Remove unnecessary static casts 2024-06-05 11:54:36 -06:00
Chris Thrasher
3f38738a08 Revert "Simplify sf::Clock usage"
This reverts commit 08cfbc7d6c.
2024-06-05 12:28:00 +02:00
Chris Thrasher
100c9a3e35 Use fixed versions of CI images 2024-06-04 19:22:03 -06:00
Chris Thrasher
7b4e17be37 Remove unnecessary round trip conversion 2024-06-04 18:38:48 -06:00
Chris Thrasher
08cfbc7d6c Simplify sf::Clock usage 2024-06-04 17:54:50 -06:00
Paul Meffle
1e1c13b51d Add example raw_input 2024-06-04 13:24:10 -06:00
Paul Meffle
92bba1ed6f Add support for raw mouse input 2024-06-04 13:24:10 -06:00
Chris Thrasher
bfd65989e9 Remove default empty state of sf::Texture 2024-06-04 13:19:58 -06:00
Chris Thrasher
24dc6b5ea9 Reduce the scope of variables 2024-06-04 01:54:09 -06:00
Chris Thrasher
2c443d143b Assume X11 UTF-8 support is present 2024-06-04 01:14:06 -06:00
Chris Thrasher
46a71e4fe8 Add clang-tidy readability-redundant-member-init check
This has to be silenced for `sf::Vertex` because in some places within
SFML we initialize only a subset of this aggregate type. If we remove
the `{}` from `texCoords` then we get a compiler warning from Clang. It
feels like these two clang-based tools are somewhat contradictory.

error: missing field 'texCoords' initializer [-Werror,-Wmissing-field-initializers]
            m_points.append({{x, y}, {r, g, b}});
2024-06-04 00:56:24 -06:00
Chris Thrasher
91956d152d Remove unnecessary scope 2024-05-31 15:23:22 -06:00
Chris Thrasher
86682d99dd Unify Vulkan implementations under one header 2024-05-31 13:14:54 -06:00
binary1248
01e4f3f783 Perform sanity checks on OpenGL extensions to make sure the required entry points are actually available. 2024-05-31 09:19:43 -06:00
binary1248
59414d5bfd Restore Shader and Island examples back to equivalent pre-API-change functionality. 2024-05-30 12:53:11 -06:00
Chris Thrasher
7987d3cedc Assume XrandR version >=1.3
As far as I can tell XrandR 1.3 was released in ~2009. It's safe to
assume anyone using SFML 3 or newer will have this version installed.
2024-05-29 11:36:01 -06:00
Chris Thrasher
ac620900ac Use more type safe interfaces 2024-05-29 12:20:25 +02:00
Chris Thrasher
4fbd1d34b1 Use delegating constructor 2024-05-29 12:19:05 +02:00
binary1248
123270f7ad Added support for retrieving a list of audio playback devices, getting the default audio playback device and changing the audio playback device during runtime. 2024-05-28 10:54:01 -06:00
Chris Thrasher
4b1751321a Reduce pointer usage 2024-05-27 09:06:30 -06:00
Chris Thrasher
55f0918c62 Remove sf::View::reset in favor of assignment operations
It's rare that a type truly needs a .reset function. Copy/move
assignment typically accomplishes the same thing with less code
and is easier to maintain since it doesn't require updating your
.reset() function as new data members are added.

To reset a type is conceptually the same thing as simply assigning
from a newly constructed instance of the same type.
2024-05-26 10:23:52 -06:00
Chris Thrasher
4f28851ee6 Fix outdated template code 2024-05-26 07:35:30 -06:00
vittorioromeo
e53f4d62af Turn 'ContextSettings' into an aggregate and update usages 2024-05-25 00:56:37 +02:00
Chris Thrasher
ad03953795 Use std:: namespace 2024-05-24 10:44:46 -06:00
Chris Thrasher
b583eaf160 Replace const char* with std::string_view 2024-05-24 12:01:27 +02:00
copyrat90
51676b65db Fix missing include of <algorithm> 2024-05-23 23:57:05 -06:00