isPreloaded

Checks whether the specified music resource has been preloaded.

virtual int isPreloaded(int64_t songCode) = 0;

This method is a synchronous call. To preload a new music resource, call preload.

Parameters

songCode
ID of the music resource, used to identify a music item.

Return Values

  • 0: Success. The music resource has been preloaded.
  • < 0: Failure. See error codes.