audio/audio_region.h file

API for Regions inside audio Track's.



auto audio_region_new(const int pool_id, const char* filename, bool read_from_pool, const float* frames, const unsigned_frame_t nframes, const char* clip_name, const channels_t channels, BitDepth bit_depth, const Position* start_pos, unsigned int track_name_hash, int lane_pos, int idx_inside_lane) -> ZRegion*
Creates a region for audio data.
auto audio_region_get_clip(const ZRegion* self) -> AudioClip*
Returns the audio clip associated with the Region.
void audio_region_set_clip_id(ZRegion* self, int clip_id)
Sets the clip ID on the region and updates any references.
void audio_region_replace_frames(ZRegion* self, float* frames, unsigned_frame_t start_frame, unsigned_frame_t num_frames, bool duplicate_clip)
Replaces the region's frames from start_frames with frames.
auto audio_region_fill_stereo_ports(ZRegion* self, const EngineProcessTimeInfo*const time_nfo, StereoPorts* stereo_ports) -> REALTIME HOT NONNULL void
Fills audio data from the region.
auto audio_region_validate(ZRegion* self, double frames_per_tick) -> bool
Sanity checking.
void audio_region_free_members(ZRegion* self)
Frees members only but not the audio region itself.


Number of frames for built-in fade (additional to object fades).