Resource ceilings checked before the decoder allocates output storage. More...
#include <wav_decoder.hpp>
Public Attributes | |
| std::uint64_t | max_frames = 100'000'000u |
| std::uint32_t | max_channels = 64u |
| std::uint64_t | max_output_bytes = 512u * 1024u * 1024u |
Resource ceilings checked before the decoder allocates output storage.
Import surfaces handling untrusted media should set limits appropriate to their own memory budget.
| std::uint32_t pulp::audio::WavDecodeLimits::max_channels = 64u |
| std::uint64_t pulp::audio::WavDecodeLimits::max_frames = 100'000'000u |
| std::uint64_t pulp::audio::WavDecodeLimits::max_output_bytes = 512u * 1024u * 1024u |