diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-05-15 00:00:17 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-05-15 00:04:16 +0200 |
| commit | c9f52b7223685d2e7fca925594171f94dd8c6e3b (patch) | |
| tree | 740bb32a40da98a4d52836432f59a16b31333900 /test/test_bass.cpp | |
| parent | 951766666621fa77e257e6b5616fe4ab1eb2a52f (diff) | |
Ported to CMake, ...
* Ported the project to CMake
* Android and Mac support dropped for the time
being.
* Tests, BASS and Discord-RPC are now options
* Restructured and reformated the project.
* Merged `include` and `src`
* Renamed `resource` to `data`
* Renamed various files
* External libraries headers are no longer included in `src`
* Replaced header guards with #pragma once
* Multiple refactors (keywords, headers)
* Added Qt6 compatibility
* Removed various unused functions and headers
* Reworked AOPacket
* When content is passed to AOPacket, it should be ensured that the content is already decoded.
* Encoding/decoding are now static methods.
* Fixed various memory leaks
* Removed animation code for AOImage
* AOImage is always using static images
* Simplified ChatLogPiece
Diffstat (limited to 'test/test_bass.cpp')
| -rw-r--r-- | test/test_bass.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/test/test_bass.cpp b/test/test_bass.cpp index e48decd8..0e97b6a1 100644 --- a/test/test_bass.cpp +++ b/test/test_bass.cpp @@ -1,14 +1,15 @@ -#include <iostream> #include <cstring> +#include <iostream> -#include <catch2/catch.hpp> #include <QString> +#include <catch2/catch.hpp> #include "bass.h" #include "bassmidi.h" #include "bassopus.h" -TEST_CASE("BASS URL streaming", "[bass][noci]") { +TEST_CASE("BASS URL streaming", "[bass][noci]") +{ // Sample QString url = "https://raw.githubusercontent.com/skyedeving/aocharedit/master/Attorney%20Online%20Character%20Editor/Resources/about.mp3"; @@ -18,17 +19,21 @@ TEST_CASE("BASS URL streaming", "[bass][noci]") { // create stream from url HSTREAM stream; unsigned int flags = BASS_STREAM_AUTOFREE | BASS_STREAM_STATUS; - if (url.endsWith(".opus")) { + if (url.endsWith(".opus")) + { stream = BASS_OPUS_StreamCreateURL(url.toStdString().c_str(), 0, flags, nullptr, 0); } - else { + else + { stream = BASS_StreamCreateURL(url.toStdString().c_str(), 0, flags, nullptr, 0); } // Log http status const char *tags = BASS_ChannelGetTags(stream, BASS_TAG_HTTP); - if (tags) { - while(*tags) { + if (tags) + { + while (*tags) + { UNSCOPED_INFO(tags); tags += strlen(tags) + 1; } |
