Skip to content

Commit db9526a

Browse files
Merge branch 'develop'
2 parents 1553124 + 27a5aa3 commit db9526a

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

.github/workflows/cmake.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
run: |
3333
curl https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.26/OpenBLAS-0.3.26-x64.zip -L -o tmp.zip
3434
7z x ./tmp.zip -oOpenBLAS
35+
cp ./OpenBLAS/lib/libopenblas.lib $GITHUB_WORKSPACE
36+
cp ./OpenBLAS/bin/libopenblas.dll $GITHUB_WORKSPACE
37+
echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH
3538
- name: Create Build Environment
3639
# Some projects don't allow in-source building, so create a separate build directory
3740
# We'll use this as our working directory for all subsequent commands
@@ -66,9 +69,18 @@ jobs:
6669
# Execute the build. You can specify a specific target with "--target <NAME>"
6770
run: cmake --build . --config $BUILD_TYPE
6871

69-
- name: Test
72+
- name: Test (Unix)
73+
if: ${{ contains( runner.os, 'Linux' ) || contains( runner.os, 'macOS' )}}
7074
working-directory: ${{runner.workspace}}/build
7175
shell: bash
72-
if: ${{ contains( runner.os, 'Linux' ) || contains( runner.os, 'macOS' )}}
7376
# Execute tests
7477
run: ./test/saf_test
78+
79+
- name: Test (Windows)
80+
if: ${{ contains( runner.os, 'Windows' ) }}
81+
working-directory: ${{runner.workspace}}/build
82+
shell: bash
83+
run: |
84+
cp $GITHUB_WORKSPACE/libopenblas.dll ./test/$BUILD_TYPE/
85+
ls -lh ./test/$BUILD_TYPE/
86+
./test/$BUILD_TYPE/saf_test.exe

examples/src/ambi_bin/ambi_bin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void ambi_bin_initCodec
270270
}
271271
}
272272
else{
273-
saf_print_warning("Too many grid points");
273+
saf_print_warning("Too many grid points to calculate grid weights. Assuming that the HRTF measurement grid was uniform.");
274274
free(pars->weights);
275275
pars->weights = NULL;
276276
}

examples/src/ambi_dec/ambi_dec_internal.c

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ void loadLoudspeakerArrayPreset
131131
/* fall through */
132132
case LOUDSPEAKER_ARRAY_PRESET_DEFAULT:
133133
/* fall through */
134+
case LOUDSPEAKER_ARRAY_PRESET_STEREO:
135+
nCH = 2;
136+
for(ch=0; ch<nCH; ch++)
137+
for(i=0; i<2; i++)
138+
dirs_deg[ch][i] = __stereo_dirs_deg[ch][i];
139+
break;
134140
case LOUDSPEAKER_ARRAY_PRESET_5PX:
135141
nCH = 5;
136142
for(ch=0; ch<nCH; ch++)

examples/src/ambi_roomsim/ambi_roomsim.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void ambi_roomsim_setRoomDimZ(void* const hAmbi, float newValue)
332332
void ambi_roomsim_setWallAbsCoeff(void* const hAmbi, int xyz_idx, int posNeg_idx, float new_value)
333333
{
334334
ambi_roomsim_data *pData = (ambi_roomsim_data*)(hAmbi);
335-
saf_assert(xyz_idx<4, "xyz_idx indicates each spatial axis, so cannot exceed 4");
335+
saf_assert(xyz_idx<3, "xyz_idx indicates each spatial axis, so cannot exceed 3");
336336
saf_assert(posNeg_idx==0 || posNeg_idx==1, "posNeg_idx is a bool");
337337
if(new_value!=pData->abs_wall[2*xyz_idx+posNeg_idx]){
338338
pData->abs_wall[2*xyz_idx+posNeg_idx] = new_value;

examples/src/binauraliser/binauraliser_internal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void binauraliser_initHRTFsAndGainTables(void* const hBin)
244244
}
245245
}
246246
else{
247-
saf_print_warning("Too many grid points to calculate grid weights. i.e., we're not assuming that the HRTF measurement grid was uniform.");
247+
saf_print_warning("Too many grid points to calculate grid weights. Assuming that the HRTF measurement grid was uniform.");
248248
free(pData->weights);
249249
pData->weights = NULL;
250250
}

0 commit comments

Comments
 (0)