GeneratorInstance.Result
The result returned from a GeneratorInstance.IRealtime.Process call.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
public ref struct GeneratorInstance.Result
Remarks
This primarily contains the amount of frames actually written into the passed-in ChannelBuffer, and the status of the generator (eg. whether it has finished or not).
Additional Resources: RealtimeContext.Process
Properties
Property | Description |
|---|---|
| processedFrames | Number of frames processed by the GeneratorInstance in RealtimeContext.Process. |
Methods
Method | Description |
|---|---|
| didLoadFail | If this is true, the backing audio clip failed to load and the generator cannot produce audio. |
| isFinished | If this is true, the GeneratorInstance has finished generating audio and won't produce any more frames. |
| isLoading | If this is true, the GeneratorInstance is still loading its backing audio clip asynchronously. |
Static Methods
Method | Description |
|---|---|
| Finished | Creates a new GeneratorInstance.Result that indicates the generator has finished from this point on, having delivered _processedFrames additionally. |
Operators
Operator | Description |
|---|---|
| Result | Creates a new GeneratorInstance.Result from a number of frames processed. |