Skip to content

Commit a133242

Browse files
authored
remove zero pad in mono VocFile (#279)
* remove zero pad in mono VocFile * update version * fix tests * update ci sonarcloud
1 parent 692501f commit a133242

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ on:
1818
#branches:
1919
# - master
2020

21-
pull_request:
22-
# branches: [ master ]
23-
paths-ignore:
24-
- 'doc/**'
25-
- '.gitignore'
26-
- '.gitattributes'
27-
- 'README.md'
28-
- 'LICENSE'
29-
- 'wave_generators.r'
21+
#pull_request:
22+
## branches: [ master ]
23+
# paths-ignore:
24+
# - 'doc/**'
25+
# - '.gitignore'
26+
# - '.gitattributes'
27+
# - 'README.md'
28+
# - 'LICENSE'
29+
# - 'wave_generators.r'
3030

3131
#permissions: read-all
3232

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
55
endif()
66

77

8-
project ("sdl2-hyper-sonic-drivers" VERSION 0.15.2 DESCRIPTION "SDL2 based Hyper-Sonic Drivers for emulating old soundcards")
8+
project ("sdl2-hyper-sonic-drivers" VERSION 0.15.3 DESCRIPTION "SDL2 based Hyper-Sonic Drivers for emulating old soundcards")
99
include (TestBigEndian)
1010
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
1111
if(IS_BIG_ENDIAN)

sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/files/VOCFile.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ namespace HyperSonicDrivers::files
190190
for (int i = 0; i < d; i++)
191191
buf.push_back(0);
192192

193-
if (buf.size() % 2 == 1)
194-
buf.push_back(0);
195-
196193
m_dataSize = static_cast<uint32_t>(buf.size());
197194
m_data = std::make_shared<uint8_t[]>(m_dataSize);
198195
std::memcpy(m_data.get(), buf.data(), sizeof(uint8_t)* m_dataSize);

sdl2-hyper-sonic-drivers/test/HyperSonicDrivers/files/TestVOCFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ namespace HyperSonicDrivers::files
4646
VOCFile,
4747
VocFileTest,
4848
::testing::Values(
49-
std::make_tuple("../fixtures/VSCREAM1.VOC", audio::mixer::eChannelGroup::Sfx, 8000, 5818, 0x80),
50-
std::make_tuple("../fixtures/DUNE.VOC", audio::mixer::eChannelGroup::Speech, 14705, 15234, 0x83)
49+
std::make_tuple("../fixtures/VSCREAM1.VOC", audio::mixer::eChannelGroup::Sfx, 8000, 5817, 0x80),
50+
std::make_tuple("../fixtures/DUNE.VOC", audio::mixer::eChannelGroup::Speech, 14705, 15233, 0x83)
5151
)
5252
);
5353

0 commit comments

Comments
 (0)