audio/audio_region.h file

API for Regions inside audio Track's.

Contents

Functions

auto audio_region_new(const int pool_id, const char* filename, bool read_from_pool, const float* frames, const long 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, size_t start_frame, size_t num_frames, bool duplicate_clip)
Replaces the region's frames from start_frames with frames.
auto audio_region_fill_stereo_ports(ZRegion* self, long g_start_frames, nframes_t cycle_start_offset, nframes_t nframes, StereoPorts* stereo_ports) -> REALTIME HOT NONNULL void
Fills audio data from the region.
void audio_region_free_members(ZRegion* self)
Frees members only but not the audio region itself.

Defines

#define AUDIO_REGION_DEFAULT_FADE_MS
Default fade to inject when playing back.