i’m new to fmod, and I’m trying to use it for a simple application.
I just need to open a remote music file (mostly mp3, and if that can help I can transcode on the server to always have mp3).
When I try to [code:2cq3vs6l]FMOD_System_CreateSound(system, "http://somewhere.com/song.mp3", FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM, 0, &song);[/code:2cq3vs6l]
That works fine, it open and play the mp3 fine.
But, when I try to do what I realy need :
[code:2cq3vs6l]FMOD_System_CreateSound(system, "http://somewhere.com/somepage.view?id=4324324324556546456457567456ef3345&var=thing", FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM, 0, &song);[/code:2cq3vs6l]
It just don’t works.
That link for example would return a stream.mp3 file, but FMOD just fail on it.
Is there a way to make it works ?
I guess the problem is FMOD just don’t find the filename in the link, but I can’t change the link :/
If it’s not possible, is there a way to make fmod works with curl (curl download the file perfectly), like a function to call for each part of the file ?
- Ulrar asked 6 years ago
It’s hard to say what the problem might be without being able to test.
Could you provide a valid URL so I can step through the debugger and find out why it doesn’t load?
If you don’t want to post publicly you could always email firstname.lastname@example.org.
Thanks for the link, for anyone else reading this:
The issue is the URL is too long, old versions of FMOD only handle 256 character before truncating. However all currently supported versions of FMOD allow up to 1024 characters, so upgrading to a more recent version of FMOD will fix this issue.
Please login first to submit.