PerformanceMode
Hint to the platform about the desired trade-off between audio latency and power consumption.
This is a hint -- the platform may not honor the request if the hardware or current system state does not support it. The actual latency achieved can be queried via AudioStream.latencyInfo after the stream is started.
Choosing a Mode
| Mode | Use case |
|---|---|
| LOW_LATENCY | Live audio, instruments, real-time effects |
| POWER_SAVING | Background music, long-running playback |
| NONE | No preference; let the platform decide |
See also
Entries
Properties
Functions
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared.