Answered
0
0

Hello, when I use fmod net_stream library run in iOS, I want to play a net stream audio music, it throw a error, and can’t continue to play in this code:

    result = sound->getOpenState(&openstate, &percent, &starving, 0);

it sounds like can’t get sound’s state, my iOS version is iOS11, hope some one can help me to solve this problem, it is appreciate!

  • Cameron Baron

    What is the error you are getting?

  • vicczhang

    when i run your net_stream demo it can’t play music in internets,but in android it can play.

  • You must to post comments
Best Answer
2
0

It sounds like the Offline Render Audio Queue is not compatible with that net stream.

Try setting the exinfo.suggestedsoundtype, used to create the sound, to FMOD_SOUND_TYPE_MPEG. This will force it to use the mpeg codec first.

  • vicczhang

    it works!, Thank you very much, you save my life!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.