iDevGames Forums
Sound from both file and "virtual fs" - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Sound from both file and "virtual fs" (/thread-9867.html)



Sound from both file and "virtual fs" - godexsoft - Feb 13, 2012 03:24 PM

Hi guys,

In my game I have to play sounds (different types) from both the filesystem (can use AudioFileOpenURL to handle formats) and an virtual filesystem - uncompressed zip archive. I can get the FILE* and offset/size inside the zip but how can I use that together with Audio queue services?
Is there any easier way other than determining the audio format manually and then using the Audio queue services?

TIA,
Alex


RE: Sound from both file and "virtual fs" - godexsoft - Feb 14, 2012 08:33 PM

Looks like I found the answer: AudioFileOpenWithCallbacks.

Cheers!
Alex