Unverified Commit a024a1e3 authored by RobLoach's avatar RobLoach
Browse files

Update vendor

parent f91ff709
......@@ -49,6 +49,7 @@ SOURCES_C += $(wildcard \
# stb_vorbis
SOURCES_C += $(CORE_DIR)/vendor/stb/stb_vorbis.c
FLAGS += -DHAVE_STB_VORBIS
FLAGS += -I$(CORE_DIR)/vendor
# zlib
SOURCES_C += \
......
......@@ -30,12 +30,11 @@ SoundData::SoundData(const std::string& filename) {
} else if (extension == "ogg") {
m_sound = audio_mixer_load_ogg(buffer, size);
} else {
std::cout << "[ChaiLove] [SoundData] File " << filename << " extension of " << extension << " is currently not supported." << std::endl;
return;
std::cout << "[ChaiLove] [SoundData] Audio ." << extension << " files are not supported." << std::endl;
}
free(buffer);
if (m_sound == NULL) {
std::cout << "[ChaiLove] [SoundData] Failed to load wav from buffer " << filename << std::endl;
std::cout << "[ChaiLove] [SoundData] Failed to load audio for " << filename << std::endl;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment