Hi, I am having trouble getting streaming audio to play in our Windows Metro app. The mode used with createStream is FMOD_SOFTWARE | FMOD_LOOP_NORMAL and the error returned is FMOD_ERR_FILE_BAD, I have checked the AppX directory and it’s definitely in there. We have a Windows Phone 8 version using the same code which works fine.
- eugene1982 asked 5 years ago
Relative paths no longer work in metro apps, It’s a bug in FMOD that it’s returning FILE_BAD instead of FILE_NOTFOUND. Using ms-appx:// syntax will be the easiest way, but do not call any FMOD function that performs synchronous IO from the UI thread or it will hang. Either move it to another thread within your app, or use FMOD_NONBLOCKING in the mode argument.
We are using the latest version of FMOD Windows 8 Store (4.44). We are using just the filename with no absolute path component, we tried using ms-appx:// but the call just hangs. The files are copied to the AppX directory directly so I’m assuming we can just load the file by it’s name?
Thanks for your help,
- eugene1982 answered 5 years ago
Please login first to submit.