Hi,
I just replaced my background music from ogg to new tracks in mp3 format, and noticed that they are not exported to Android.
Here is the routine loading them, I added a print to see what is there:
func get_music_tracks():
var dir = Directory.new()
dir.open(MusicPath)
dir.list_dir_begin(true)
while true:
var file = dir.get_next()
print(str(file))
if file == "":
break
if dir.current_is_dir():
continue
if file.begins_with("."):
continue
if file.get_extension() != "mp3":
continue
music_tracks.append(load(MusicPath + "/" + file))
On Windows, it prints:
Track01.mp3
Track01.mp3.import
Track02.mp3
Track02.mp3.import
Track03.mp3
Track03.mp3.import
Track04.mp3
Track04.mp3.import
On Android however:
Track01.mp3.import
Track02.mp3.import
Track03.mp3.import
Track04.mp3.import
in export settings, Export Mode is set to include all ressources. Adding "*.mp3" to "export non-ressource files" also make no difference. Is there another place where I have to include them?