ios - CoreAudio based app stops playing if any UI is added in app -
i have coreaudio based player streams remote mp3s.
it uses nsurlconnection
retrieve mp3 data -> uses audioconverter
convert stream pcm -> , feeds stream augraph
play audio.
the player works fine in demo app(it contains play button), when add player project, when coupled project makes networking calls, , updates ui, player fails play audio past few seconds.
am possibly experiencing threading issue? preventative approaches can take or can prevent happening?
you not mention in software architecture buffering data between receiving via nsurlconnection , when send player.
data arrive in chunks inconsistent arrival rates.
please see these answers posted regarding buffering , network jitter.
and
network jitter , buffering queue
in nutshell, can receive data , send player because next data may not arrive in time.
you don't mention rate mp3 file delivered. if delivered on fast connection... buffering of data received or getting lost somewhere in app? there chance problem receiving way data fast , not buffering data received.
Comments
Post a Comment