I tried to search the forums for the answer but I haven’t seen an answer to this question. I know Corona is all about cross platform but there are still some rough edges we need to deal with when it comes to build and deploy. The most obvious one is audio file support.
I found the androidizing article great because it shows how to use the device helper code to pick either an m4a or ogg file depending on the device. However, why should I have to include both when either build (iPhone or Android) will only use one? I want an easy way to tell the build what to include to support various use cases such as this. I could also make an argument for using this type of feature to include certain files based on the app store I’m targeting, etc.
This is similar to other technologies that have “build profiles” that can be configured. It would be better yet to also be able to reference build profile variables in code so I could have one common code base that builds “lean” and is easy to manage. However, my main goal right now is just to be able to help streamline my process and keep the builds lean. I’m already unhappy that I have to spawn duplicate content just to deal with this audio format issue, but it would be worse yet to have to have bloated builds also (this app has a lot of audio).
Is there any such feature in Corona? If not, is there an easy way to accomplish this without spawning a new project or something silly like that?
p.s., a killer feature request would be to just let me give Corona the raw 16 bit WAV and then control the audio format via build settings. If I tell Corona to compress my audio, it would compress as best for each platform and I have no audio “busy work” to do. 