0
0

Hello,

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 ?
Thanks

  • You must to post comments
0
0

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 support@fmod.org.

  • You must to post comments
0
0

There is user account in the link so I sent a it by email.

Thank you

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

I was using the Gentoo portage version.

Upgrading fixed the problem, thanks for the help, it works perfectly :-)

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.