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 asked 3 years ago
- You must login to post comments
AAC is only supported on Android and iOS and only as a file on disk, you cannot netstream AAC with FMOD.
- Mathew Block answered 3 years ago
- You must login to post comments
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
regards
- lemart answered 3 years ago
- You must login to post comments
Let me ask this question a bit different
Assuming, I have a custom fmodex codec. Is this used by your netstream backend or shall I stream it on my self?
- lemart answered 3 years ago
- Is a custom codec used while streaming or not?
- You must login to post comments
to make it clear, I don’t use MP3 or AAC files. I am trying to play back a radio stream
- lemart answered 3 years ago
- You must login to post comments
Please login first to submit.