I would like to feed FMOD continuosly with encoded (i.e.non PCM) data in streaming fashion - with unknown length, and not via a file - and have been testing creating a sound with setFileSystem callbacks set; - but since the callbacks are file oriented and there’s e.g. no file handle - without much success (data is encoded via common codec such as mp3 which FMOD normally accepts).
I’m roughly following asyncio sample in unity c# wrapper, using CREATESTREAM opening flag, empty CREATESOUNDEXINFO; after setting at least some dummy filesize in open callback, FMOD seems to freeze after 1st call to async read callback.
:: the reason I’m trying to do this is to enhance, or rather replace in fact, FMOD networking which is very bare bones esp. wrt secure connections and/or other features such as authentication/redirects/…
Is this viable approach and can this be eventually done this way ?
If not, is there currently a potential way of doing this with FMOD ?
Thank you !