netstream with aac 48 kbits


(lemart) #1

Hey there,

I am trying to start the netstream example from an AAC stream.

I found an old FMODEx Thread where it was stated that it is needed to set the type by

FMOD_CREATESOUNDEXINFO exinfo;
memset(&exinfo, 0x0, sizeof(FMOD_CREATESOUNDEXINFO));
exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.suggestedsoundtype = FMOD_SOUND_TYPE_MPEG;

This works with an MP3 very well.

With AAC I tried to do this:
FMOD_CREATESOUNDEXINFO exinfo;
memset(&exinfo, 0x0, sizeof(FMOD_CREATESOUNDEXINFO));
exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.suggestedsoundtype = FMOD_SOUND_TYPE_AUDIOQUEUE;

Unfortuantely, I am still getting an error: “Couldn’t perform seek operation. This is a limitation of the medium (ie netstreams) or the file format.”

What can I do to prevent this?

regards
Martin


(lemart) #2

to make it clear, I don’t use MP3 or AAC files. I am trying to play back a radio stream :slight_smile:


(lemart) #3

anyone?


(Mathew Block) #4

AAC is only supported on Android and iOS and only as a file on disk, you cannot netstream AAC with FMOD.


(lemart) #5

Hey Mathew,

thanks for your fast answer. I do understand it since I already build my own AVFoundation stack to decode on iOS and MacOSX. What I do not understand is, that you support it but not for netstreams? Back in time I build a aac decoder codec for fmod that uses faad. I could port it. Well, I am not sure anymore wheter this codec is used in the streaming part of FMOD or not.
I don’t want to code senseless stuff :slight_smile:

regards


(lemart) #6

Let me ask this question a bit different :slight_smile:

Assuming, I have a custom fmodex codec. Is this used by your netstream backend or shall I stream it on my self?


(lemart) #7

Is a custom codec used while streaming or not?