vendor: Fix libretro-common changes

This commit is contained in:
Rob Loach 2022-01-02 14:01:30 -05:00
parent d783112247
commit ea4c9785fc
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A
3 changed files with 5 additions and 3 deletions

View File

@ -36,6 +36,8 @@ ifneq ($(STATIC_LINKING), 1)
$(CORE_DIR)/vendor/libretro-common/file/config_file.c \
$(CORE_DIR)/vendor/libretro-common/file/config_file_userdata.c \
$(CORE_DIR)/vendor/libretro-common/file/file_path.c \
$(CORE_DIR)/vendor/libretro-common/file/file_path_io.c \
$(CORE_DIR)/vendor/libretro-common/time/rtime.c \
$(CORE_DIR)/vendor/libretro-common/formats/wav/rwav.c \
$(CORE_DIR)/vendor/libretro-common/lists/string_list.c \
$(CORE_DIR)/vendor/libretro-common/memmap/memalign.c \

View File

@ -11,7 +11,7 @@ def load() {
}
def draw() {
love.graphics.print("Hello World!", 100, 100)
love.graphics.print("Congrats! You created your first ChaiLove application!", 200, 300)
love.graphics.draw(logo, x, y)
}

View File

@ -29,7 +29,7 @@ SoundData::SoundData(const std::string& filename) {
// Load the audio from the file.
if (extension == "wav") {
m_sound = audio_mixer_load_wav(buffer, size);
m_sound = audio_mixer_load_wav(buffer, size, "audio", RESAMPLER_QUALITY_DONTCARE);
// Wav files don't need the buffer anymore.
free(buffer);
buffer = NULL;
@ -86,7 +86,7 @@ void SoundData::unload() {
bool SoundData::play() {
if (isLoaded()) {
m_voice = audio_mixer_play(m_sound, m_loop, m_volume, audioCallback);
m_voice = audio_mixer_play(m_sound, m_loop, m_volume, "audio", RESAMPLER_QUALITY_DONTCARE, audioCallback);
if (m_voice != NULL) {
m_playing = true;
}