I tested many different music file, and even when the file has all the supported format, many caused stencyl to not be able to export the SWF, with the error "Cannot write file".
It is really because of the music file, since when I change or remove it, it works.
Also, I tried with 2 different files, with the same specs:
- 44100 Khz
- 64 kbps constant (not vbr)
- stereo
I have many files that doesn't work, and others that do. I have no idea why. Maybe some sort of meta data within the file ?
Also, another bug that exist that I found with music file, is that some won't loop correctly. They will play, and restart in the middle of the song, and it is not the BGM behavior, when I change to any song with the same lengh, it can work. Also, it works when I test play the game via the stencyl sandbox, but when the game is exported, it doesn't work.
Also, the "Cannot write SWF" is also ONLY when I export the game. Stencyl can playtest the game via its sandbox without any problem.
Also, I tested this within many diffirent projects, and some project from strach, still the same problem.
I uploaded 3 music file.
"Ice Frontier" has a loop that cut, when exported, will restart in the middle of the song.
"Flowing Melodies" will cause the "Cannot export/Cannot write SWF" error when exported.
"battle of the Bits" works in all cases.
All 3 have been saved from the same application, they are the same specs.