file
audio_region.hAPI for Regions inside audio Track's.
Functions
-
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.
Defines
- #define AUDIO_REGION_BUILTIN_FADE_FRAMES
- Number of frames for built-in fade (additional to object fades).