Alex Barry
2013-Feb-22 15:26 UTC
[Vorbis] Using libvorbis and vorbisfile in the Windows 8 store app environment
I've used libvorbis many times in linux and windows <= 7 applications without any major problems, and wanted to know if that translates the same to the sandboxed windows 8 store app environment. I'm playing around with it right now, and was able to get the library to compile fine (static), and was able to get it to compile within my project. So far, no problems, but I was almost certain that there was some sort of heavy restriction on using fopen and friends within the sandboxed environment. I am trying to play an ogg file and so far, my fopen_s() keeps returning non-zero, but I'm still working on debugging it (I'm assuming I just need to specify an absolute path rather than relative to the app). Anyone with windows 8 store app experience and tips? *Alexander Barry* Game Platform Developer Tel. +1 (519) 749-3379 Fax. +1 (519) 513-2421 [image: Inline image 1] * * *CineClick Inc.* Accelerator Centre David Johnston Research & Technology Park 295 Hagey Blvd., Waterloo, ON N2L6R5 The information contained in this communication is confidential and intended only for the use of those to whom it is addressed. If you have received this communication in error, please notify me by telephone (collect if necessary) and delete or destroy any copies of it. Thank you. Le contenu de ce courriel est confidentiel et ? l?intention du (des) destinataire(s) seulement. Si vous recevez cette transmission par erreur, veuillez m?aviser imm?diatement par t?l?phone en utilisant le num?ro mentionn? ci-haut (? frais vir?s si n?cessaire). Veuillez effacer ou d?truire toutes copies de ce courriel re?ues. Merci de votre collaboration. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20130222/48c2bfa8/attachment.htm
Ian Malone
2013-Feb-23 00:01 UTC
[Vorbis] Using libvorbis and vorbisfile in the Windows 8 store app environment
On 22 February 2013 15:26, Alex Barry <alex at cineclick.ca> wrote:> I've used libvorbis many times in linux and windows <= 7 applications > without any major problems, and wanted to know if that translates the same > to the sandboxed windows 8 store app environment. I'm playing around with > it right now, and was able to get the library to compile fine (static), and > was able to get it to compile within my project. So far, no problems, but > I was almost certain that there was some sort of heavy restriction on using > fopen and friends within the sandboxed environment. I am trying to play an > ogg file and so far, my fopen_s() keeps returning non-zero, but I'm still > working on debugging it (I'm assuming I just need to specify an absolute > path rather than relative to the app). > > Anyone with windows 8 store app experience and tips? > >(Ooops, meant to reply on-list. Alex got back to say the files are packaged with the app, so what I've said below isn't the full answer, may be another issue.) I've no experience with it, but it looks like fopen is a non-starter: http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/718fc649-bcec-4b87-85ee-51fa129d06d7/ This will break SO much. Still libvorbis doesn't care about the data reading mechanism as long as you can get the data for it. If you're using libvorbisfile you'll need to use the callbacks API, < http://xiph.org/vorbis/doc/vorbisfile/callbacks.html> and < http://xiph.org/vorbis/doc/vorbisfile/ov_callbacks.html>. -- imalone http://ibmalone.blogspot.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20130223/45eecf1b/attachment.htm