25 friend void init_from (
27 const AudioTrack &other,
37 void timestretch_buf (
38 const AudioRegion * r,
40 uint64_t in_frame_offset,
41 double timestretch_ratio,
42 float * lbuf_after_ts,
43 float * rbuf_after_ts,
44 uint64_t out_frame_offset,
45 uint64_t frames_to_process);
49 friend void to_json (nlohmann::json &j,
const AudioTrack &track)
51 to_json (j,
static_cast<const Track &
> (track));
53 friend void from_json (
const nlohmann::json &j, AudioTrack &track)
55 from_json (j,
static_cast<Track &
> (track));
62 std::unique_ptr<zrythm::dsp::Stretcher> rt_stretcher_;
71 units::sample_rate_t samplerate_;
Track(Type type, std::optional< PortType > in_signal_type, std::optional< PortType > out_signal_type, TrackFeatures enabled_features, BaseTrackDependencies dependencies)
Constructor to be used by subclasses.