0
0

I am trying to play an mp3 file from a [url=http://blurts.seisan.com/happy_birthday.mp3:36jrcu2h]direct link[/url:36jrcu2h].

I looked though the forums and in the examples and I see nothing that explains how this works, here is what I have so far

[code:36jrcu2h]
– (void)playLink:(NSString *)link
{
FMOD_RESULT result = FMOD_OK;
char buffer[200] = {0};

[link getCString:buffer maxLength:200 encoding:NSASCIIStringEncoding]; 

result = system->createStream(buffer, FMOD_DEFAULT, 0, &sound);

result = system->playSound(FMOD_CHANNEL_FREE, sound, false, &channel);
ERRCHECK(result);

}
[/code:36jrcu2h]

Running that gives me these 2 errors:

FMOD: System::createSoundInternal : Fatal error (20) scanning the codecs. (ie not FMOD_ERR_FORMAT or FMOD_ERR_FILE_EOF)
FMOD error! (37) An invalid parameter was passed to this function.

The first one when creating the stream, the 2nd when playing the sound. My function needs take in a direct link and play that stream.

Thanks! Any help appreciated!

  • You must to post comments
0
0

Just a quick guess, have you tried prefixing the link with "http://" ?
FMOD uses that to identify a net stream from a normal file location.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.