From 3cabca71f22556d03cc3c0cb87e36abb01a87b7c Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Sat, 11 Nov 2023 16:26:17 +0000 Subject: [PATCH 1/4] remove zero pad in mono VocFile --- .../src/HyperSonicDrivers/files/VOCFile.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/files/VOCFile.cpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/files/VOCFile.cpp index 5f6a4bcb..59abe0f2 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/files/VOCFile.cpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/files/VOCFile.cpp @@ -190,9 +190,6 @@ namespace HyperSonicDrivers::files for (int i = 0; i < d; i++) buf.push_back(0); - if (buf.size() % 2 == 1) - buf.push_back(0); - m_dataSize = static_cast(buf.size()); m_data = std::make_shared(m_dataSize); std::memcpy(m_data.get(), buf.data(), sizeof(uint8_t)* m_dataSize); From f1130ad7612fb22cd77cbb5feed7c6b659f6ed66 Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Sat, 11 Nov 2023 16:27:24 +0000 Subject: [PATCH 2/4] update version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf6754c5..147c3725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) endif() -project ("sdl2-hyper-sonic-drivers" VERSION 0.15.2 DESCRIPTION "SDL2 based Hyper-Sonic Drivers for emulating old soundcards") +project ("sdl2-hyper-sonic-drivers" VERSION 0.15.3 DESCRIPTION "SDL2 based Hyper-Sonic Drivers for emulating old soundcards") include (TestBigEndian) TEST_BIG_ENDIAN(IS_BIG_ENDIAN) if(IS_BIG_ENDIAN) From 4b15a710888abde68e6f99284b3fcf934c514d61 Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Sat, 11 Nov 2023 16:29:01 +0000 Subject: [PATCH 3/4] fix tests --- .../test/HyperSonicDrivers/files/TestVOCFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl2-hyper-sonic-drivers/test/HyperSonicDrivers/files/TestVOCFile.cpp b/sdl2-hyper-sonic-drivers/test/HyperSonicDrivers/files/TestVOCFile.cpp index 0e9b5d2b..823f588a 100644 --- a/sdl2-hyper-sonic-drivers/test/HyperSonicDrivers/files/TestVOCFile.cpp +++ b/sdl2-hyper-sonic-drivers/test/HyperSonicDrivers/files/TestVOCFile.cpp @@ -46,8 +46,8 @@ namespace HyperSonicDrivers::files VOCFile, VocFileTest, ::testing::Values( - std::make_tuple("../fixtures/VSCREAM1.VOC", audio::mixer::eChannelGroup::Sfx, 8000, 5818, 0x80), - std::make_tuple("../fixtures/DUNE.VOC", audio::mixer::eChannelGroup::Speech, 14705, 15234, 0x83) + std::make_tuple("../fixtures/VSCREAM1.VOC", audio::mixer::eChannelGroup::Sfx, 8000, 5817, 0x80), + std::make_tuple("../fixtures/DUNE.VOC", audio::mixer::eChannelGroup::Speech, 14705, 15233, 0x83) ) ); From 18324c5fc2203521659dfcacf7b7930d84cbc361 Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Sat, 11 Nov 2023 16:33:10 +0000 Subject: [PATCH 4/4] update ci sonarcloud --- .github/workflows/sonarcloud.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 54918cff..167cf656 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -18,15 +18,15 @@ on: #branches: # - master - pull_request: - # branches: [ master ] - paths-ignore: - - 'doc/**' - - '.gitignore' - - '.gitattributes' - - 'README.md' - - 'LICENSE' - - 'wave_generators.r' + #pull_request: + ## branches: [ master ] + # paths-ignore: + # - 'doc/**' + # - '.gitignore' + # - '.gitattributes' + # - 'README.md' + # - 'LICENSE' + # - 'wave_generators.r' #permissions: read-all