API reference
API reference
Select your platform
No SDKs available
No versions available

TTSDiskCache Class

Extends MonoBehaviour, ITTSDiskCacheHandler

Fields

string DiskPath[Get]
TTSDiskCacheSettings DiskCacheDefaultSettings[Get]

Properties

TTSStreamEvents DiskStreamEvents[Get]

Protected Functions

virtual void OnDestroy ( )
Performs on ready callback if no error is present, otherwise considered complete
Parameters
clipData
The audio clip data container
error
Any error that occured during the stream.
Removes request from list and performs final callbacks
Parameters
clipData
The audio clip data container
error
Any error that occured during the stream.

Member Functions

Builds full cache path
Parameters
clipData
Returns
Determine if should cache to disk or not
Parameters
clipData
All clip data
Returns
Returns true if should cache to disk
Determines if file is cached on disk
Parameters
clipData
Request data
Returns
True if file is on disk
Performs async load request
Cancels unity request
Did you find this page helpful?
Thumbs up icon
Thumbs down icon