Core API how to play when lock screen in IOS?

I used the 2.0 version Core API to play sound at the ios platform, however, when I lock the screen, the sound will stop.

I searched on the internet, all suggest to set the
extradriverdata.sessionCategory = FMOD_IPHONE_SESSIONCATEGORY_MEDIAPLAYBACK;

but extradriverdata is void type, how can I set something to it???
thanks!!

You can find more information in the Platform Details of the API docs, specifically the Lock Screen & Background Audio section.

Thanks! I already solved it, in the latency part the buffer size is the point, thank you so much!