Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::audio::WavDecodeLimits Struct Reference

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

Detailed Description

Resource ceilings checked before the decoder allocates output storage.

Import surfaces handling untrusted media should set limits appropriate to their own memory budget.

Member Data Documentation

◆ max_channels

std::uint32_t pulp::audio::WavDecodeLimits::max_channels = 64u

◆ max_frames

std::uint64_t pulp::audio::WavDecodeLimits::max_frames = 100'000'000u

◆ max_output_bytes

std::uint64_t pulp::audio::WavDecodeLimits::max_output_bytes = 512u * 1024u * 1024u

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/audio/include/pulp/audio/wav_decoder.hpp