Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline::Take Class Reference

Immutable sample-anchored recording take referencing a project media asset. More...

#include <recording.hpp>

Public Member Functions

ItemId id () const noexcept
 Returns the take's stable document identity.
const MediaRef & media () const noexcept
 Returns the referenced asset range.
timebase::SamplePosition placement_start () const noexcept
 Returns the absolute timeline start in samples at sample_rate().
timebase::RationalRate sample_rate () const noexcept
 Returns the rational rate governing placement and take duration.

Static Public Member Functions

static runtime::Result< Take, ModelError > create (ItemId id, MediaRef media, timebase::SamplePosition placement_start, timebase::RationalRate sample_rate)
 Creates a sample-anchored take referencing a sealed media range.

Detailed Description

Immutable sample-anchored recording take referencing a project media asset.

Member Function Documentation

◆ create()

runtime::Result< Take, ModelError > pulp::timeline::Take::create ( ItemId id,
MediaRef media,
timebase::SamplePosition placement_start,
timebase::RationalRate sample_rate )
static

Creates a sample-anchored take referencing a sealed media range.

Identity, media range, placement, and sample rate are validated.

◆ id()

ItemId pulp::timeline::Take::id ( ) const
inlinenoexcept

Returns the take's stable document identity.

◆ media()

const MediaRef & pulp::timeline::Take::media ( ) const
inlinenoexcept

Returns the referenced asset range.

◆ placement_start()

timebase::SamplePosition pulp::timeline::Take::placement_start ( ) const
inlinenoexcept

Returns the absolute timeline start in samples at sample_rate().

◆ sample_rate()

timebase::RationalRate pulp::timeline::Take::sample_rate ( ) const
inlinenoexcept

Returns the rational rate governing placement and take duration.


The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/timeline/include/pulp/timeline/recording.hpp