audio/audio_region.h file

Contents

API for Regions inside audio Track's.

Functions

auto audio_region_new(const int pool_id, const char* filename, const float* frames, const long nframes, const char* clip_name, const channels_t channels, const Position* start_pos, int track_pos, int lane_pos, int idx_inside_lane) -> ZRegion*
Creates a ZRegion for audio data.
void audio_region_init_frame_caches(AudioRegion* self, AudioClip* clip)
Allocates the frame caches from the frames in the clip.
void audio_region_update_channel_caches(ZRegion* self, AudioClip* clip)
Updates the region's channel caches from the region's frames.
auto audio_region_get_clip(const ZRegion* self) -> AudioClip*
Returns the audio clip associated with the Region.
void audio_region_free_members(ZRegion* self)
Frees members only but not the audio region itself.