getCaches

Retrieves information about cached music resources.

virtual int getCaches(MusicCacheInfo *cacheInfo, int32_t* cacheInfoSize) = 0;

Before calling this method, you need to preallocate memory to store information about cached music resources. If you want to set the number of music resources that can be cached, you can configure it through the configuration parameter in initialize. When these cached resources are no longer needed, you should release the memory in time to avoid memory leaks.

Parameters

cacheInfo
Output parameter. Pointer to the memory buffer used to store information about cached music resources. See MusicCacheInfo.
cacheInfoSize
Input and output parameter indicating the size of the MusicCacheInfo array.

Return Values

  • 0: Success.
  • < 0: Failure.