AudioOptions¶
Import: import system.audio;
Read the audio guide for usage, limits, and current platform restrictions.
AudioOptions¶
Resource limits for a player. Values are snapshotted by its constructor.
max_decoded_bytes¶
Maximum decoded PCM bytes for byte sources, which decode completely; defaults to 256 MiB.
max_compressed_bytes¶
Maximum encoded bytes a streamed file or URL queues ahead of its decoder; defaults to 8 MiB. An encoded element that cannot fit, such as an oversized WebM frame, fails with ELIMIT. Track length is not limited.
buffer_seconds¶
Decoded audio a streamed source keeps queued for output, in seconds; defaults to one. Values are clamped between 1,024 frames and 30 seconds.
constructor¶
Creates the default resource limits.