mirror of
https://github.com/libretro/libretro-chailove.git
synced 2025-02-16 22:37:55 +00:00
vendor: Fix libretro-common changes
This commit is contained in:
parent
d783112247
commit
ea4c9785fc
@ -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 \
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user