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

AudioStreamHandler Class

Extends DownloadHandlerScript
A download handler for UnityWebRequest that decodes audio data and performs audio sample decoded callbacks.

Properties

Whether both the request is complete and decoding is complete
The script being used to decode audio
Callback for audio sample decode
Callback for decode completion

Member Functions

The constructor that generates the decoder and handles routing callbacks
Parameters
audioDecoder
The audio type requested (Wav, MP3, etc.)
onSamplesDecoded
Called one or more times as audio samples are decoded.
onComplete
Called when all audio samples have been successfully decoded.
void CleanUp ( )

Protected Functions

If size is provided, generate error buffer size
Parameters
contentLength
Receive data and send it to be decoded asynchronously
override string GetText ( )
override float GetProgress ( )
override void CompleteContent ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon