Game Port Starting - slow

I’m seeing a bit of a delay with game-port remote starts (command: PLAYER x START/STOP) in conjunction with a Notification Script that sends data to a SHOUTcast server and a text file. The delay occurs when I attempt to start 2 items together (ie: a jingle and a song with big intros that have to be started together)… At times, one of the items either doesn’t start or won’t start until about half a second after the other item.

I suspect that the HTTPGet is “hogging” mAirList whilst it performs it’s task. It’s quite annoying :frowning:

You’re right, HTTPGet works synchronously and blocks the main thread until a response is received from the server. This is because the function returns the server response as a string.

Perhaps I should introduce another HTTPGet function which performs the GET in a background thread?

I guess the most efficient method coupled with the one that doesn’t annoy the user would be nice :wink:

Available in the latest snapshot:

procedure HTTPGetAsync(iURL: string);