Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
asset path bug — Gideros Forum

asset path bug

RadieselRadiesel Member
edited November 2012 in Bugs and issues
Hi Atilim,

I may have found a small bug regarding loading ressources. It's only a small bug, but it has cost me 1.5 days to figure it out.

Don't ask me why, but I did start using asset-paths like

./gfx/mygraphics.png
./fonts/myfont.png
./sounds/mysounds.wav

etc... That was working fine on all systems (iOS, Android, Gideros-Player) until I started using .mp3 files. I have added 2 sound file in .mp3 format and a song file in .mp3 format. Everything was still running fine on iOS and Gideros-Player, but on any kind of Android system (emulator, real device) the game crashed without comments.

./sounds/mymp3sound.mp3 -- problem!!
./mfx/music.mp3 -- problem!!

DDMS showed an error like "drawing on GL_ES without context"... Very strange...

However, there is no problem any longer after I removed ./ at the beginning of the asset paths. But I think it's questionable why that was working for .png, .wav, etc. but not for .mp3 files. So I guess there is a small difference loading .wav files and .mp3 files regarding the Sound module....

You might want to check that. Best regards
Michael

Likes: andrecaribe

+1 -1 (+1 / -0 )Share on Facebook

Comments

Sign In or Register to comment.