So, I'm trying to get my game exported to my phone. I'm using Intel XDK. I deployed the game from RPGMV, imported the files from www to the folder created by my project in XDK.
When I try to preview the game, however, I get Error: Failed to load: audio/bgm/Theme6.m4a
When I check the file in the www folder, it's there. I play it on my PC and it plays fine. So... why can't XDK load this file? Does anyone know?
either the codec/format is wrong, or it might be a missing ogg (sometimes you need both formats)
And check if it really is there and not simply a file named theme6.m4a
On deployment, Theme6 is different filename from theme6 - only windows ignores capitalisation and replaces the file with the wrong name on load if the correct name does not exist.
Well, I have m4a and oggs for all of my BGM files. They all have unique names (so there's no theme vs. Theme confusion).
I'm not sure what to do about your first suggestion. How would I go about checking codec?
I've uninstalled XDK and reinstalled in case there were any errors that way. I've redeployed the game a few times, that hasn't worked.
the codec (short for coder/decoder) is the compression mathematic used when creating or converting an audio file. Those are always improved for better compression, but the player needs to know the math to decode/decompress the audio.
They're selected in the program used to create or convert the mpeg-file, and if you use one that is too new then there is a risk that the player on a device does not know the latest improvement and can't play it.
To solve and test this issue, simply recode the m4a file, selecting an older codec for the target conversion.
Do you have any advice on what to convert it to?
I've tried aac_main and aac_low, both at bitrate of 128 and 32 (32 is the lowest I can go). I've tried sample rate of 44100 and 48000.
None of this has worked. Each time I try twice (once after a reload of XDK). Still no avail.
I should also note that I'm testing this on Google Nexus 7. I figure that's probably the newest android type of the types offered on XDK.
EDIT: I also tried Zamzar online conversion. But that didn't work either. I feel like I'm running out of options...
I also tried Audacity (from the ogg file), but this didn't work either. Is there anything else that could be causing this problem?
So, I took out all the new music I put in and I'm still getting the same error, even on the default music that comes with RPGMV! Does anyone have any idea what is going on?
can you give the full pathname? if it happens to all files, it might be because the path to the project is illegal under networking rules (you cut off everything above the project folder in your example). Networking rules means no spaces and no non-latin letters in any part of the filepath.
The whole path name is:
C:\Users\Tyler\Documents\DungeonsofDestiny\www\audio\bgm\Theme6.m4a
I don't think there's any problems there...
no, but I was guessing and looking for straws because I don't know what else it can be.
Perhaps you can try the other method for making an android export? just to check if it is something in the project or in the converters?
I could try the other method again... I tried it one a different project awhile ago and I couldn't get it work, so that's why I was trying this way for this one. But yeah, I'll give it another go.
So after struggling with this for three days, I said screw it and finished the process with XDK anyways. Once I loaded it on my phone, it WORKED. I don't know what XDK's problem is, but my phone doesn't mind the m4a files at all. Weird, eh?