Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::playback::detail Namespace Reference

Functions

constexpr bool note_event_offset_in_range (timebase::SamplePosition event, timebase::SamplePosition range_start, std::uint32_t frame_count, std::uint32_t &offset) noexcept
 Computes a block-local offset without signed overflow.
bool offline_stretch_frame_distance (std::int64_t start, std::int64_t end, std::uint64_t &distance) noexcept
OfflineStretchErrorCode offline_stretch_error_code (audio::FiniteTimeStretchFailure failure) noexcept
TransportError advance_playback_epoch (std::uint64_t &epoch) noexcept
 Advances an epoch without ever wrapping to an aliased identity.

Function Documentation

◆ advance_playback_epoch()

TransportError pulp::playback::detail::advance_playback_epoch ( std::uint64_t & epoch)
noexcept

Advances an epoch without ever wrapping to an aliased identity.

◆ note_event_offset_in_range()

bool pulp::playback::detail::note_event_offset_in_range ( timebase::SamplePosition event,
timebase::SamplePosition range_start,
std::uint32_t frame_count,
std::uint32_t & offset )
constexprnoexcept

Computes a block-local offset without signed overflow.

The subtraction is only performed after establishing event >= range_start, so unsigned subtraction is the exact non-negative distance across the full int64 domain.

◆ offline_stretch_error_code()

OfflineStretchErrorCode pulp::playback::detail::offline_stretch_error_code ( audio::FiniteTimeStretchFailure failure)
noexcept

◆ offline_stretch_frame_distance()

bool pulp::playback::detail::offline_stretch_frame_distance ( std::int64_t start,
std::int64_t end,
std::uint64_t & distance )
noexcept