Fatal error with netstream example

Thank you so much for the support.

Just to clarify (maybe for others first coming to this) there are three types of streaming

  1. Streaming a file (not loading an entire file into memory before playing) using createStream or FMOD_CREATESTREAM
  2. Streaming an http-hosted file (does it automatically as far as I can see when you enter ‘http://’ or ‘https://’ in the filename)
  3. Streaming live radio / HLS / native http, shoutcast, icecast - illustrated in the net_stream example

I am having problems with (2) when I use certain filetypes:

opus
opus does not work - returns

[ERR] CodecOggVorbis::openInternal             : failed to open as ogg, format error.

with this file https://d29bun9tgdx60n.cloudfront.net/media/sounds/frKCgDTp0xlFcN6n/8nopy8nl56pub1b4.opus
and these options:
suggestedsoundtype = FMOD_SOUND_TYPE_OPUS
mode = FMOD_2D | FMOD_CREATESTREAM | FMOD_IGNORETAGS

ogg
ogg works fine with this file https://d29bun9tgdx60n.cloudfront.net/sounds/kjlkq3f8w7ye/i94njq0jp5de.ogg

mp4
mp4 / aac fails with

[ERR] CodecAudioQueue::setupAudioFile          : Cannot open audio file. (err: 14)

with this file https://d29bun9tgdx60n.cloudfront.net/sounds/ounozatnw0cj/y7itmg6jhet3.mp4
and these options
suggestedsoundtype = FMOD_SOUND_TYPE_AUDIOQUEUE
FMOD_2D | FMOD_CREATESTREAM | FMOD_IGNORETAGS


I set this up using the play_sound_ios example, modifying the Main loop like so:

…
result = system->init(32, FMOD_INIT_NORMAL, extradriverdata);
ERRCHECK(result);

result = system->setStreamBufferSize(128*1024, FMOD_TIMEUNIT_RAWBYTES);
ERRCHECK(result);

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

result = system->createSound("http://echoesaround.s3.amazonaws.com/test/test-sound.opus", FMOD_2D | FMOD_CREATESTREAM | FMOD_IGNORETAGS, &exinfo, &sound1);
//    result = system->createSound("https://d29bun9tgdx60n.cloudfront.net/sounds/kjlkq3f8w7ye/i94njq0jp5de.ogg", FMOD_2D | FMOD_CREATESTREAM | FMOD_IGNORETAGS, &exinfo, &sound1);
//    result = system->createSound("https://d29bun9tgdx60n.cloudfront.net/sounds/ounozatnw0cj/y7itmg6jhet3.mp4", FMOD_2D | FMOD_CREATESTREAM | FMOD_IGNORETAGS, &exinfo, &sound1);
ERRCHECK(result);
…