Skip to content

Commit 534c127

Browse files
committed
Fixed build
1 parent d1959fa commit 534c127

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/nCine/Audio/ALAudioDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,15 @@ namespace nCine
127127
LOGI("ALC_EXT_EFX Version: unsupported", hasExtEfx);
128128
}
129129

130+
#if defined(AL_DEFAULT_RESAMPLER_SOFT)
130131
if (alIsExtensionPresent("AL_SOFT_source_resampler")) {
131132
ALCint defaultResampler = alGetInteger(AL_DEFAULT_RESAMPLER_SOFT);
132133
const ALchar* resamplerName = alGetStringiSOFT(AL_RESAMPLER_NAME_SOFT, defaultResampler);
133134
if (resamplerName != nullptr && resamplerName[0] != '\0') {
134135
LOGI("Resampler: {} ({})", resamplerName, defaultResampler);
135136
}
136137
}
138+
#endif
137139

138140
LOGI("Sources: {} (M) / {} (S)", monoSources, stereoSources);
139141

0 commit comments

Comments
 (0)