a highly automated and intuitive digital audio workstation
No Matches
audio_region.h File Reference

API for Regions inside audio Track's. More...

#include "dsp/position.h"
#include "dsp/region.h"
#include "utils/audio.h"
#include "utils/types.h"
Include dependency graph for audio_region.h:

Go to the source code of this file.


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


typedef struct _RegionWidget RegionWidget


Regionaudio_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, GError **error)
 Creates a region for audio data.
AudioClipaudio_region_get_clip (const Region *self)
 Returns the audio clip associated with the Region.
void audio_region_set_clip_id (Region *self, int clip_id)
 Sets the clip ID on the region and updates any references.
WARN_UNUSED_RESULT bool audio_region_replace_frames (Region *self, float *frames, unsigned_frame_t start_frame, unsigned_frame_t num_frames, bool duplicate_clip, GError **error)
 Replaces the region's frames from start_frames with frames.
REALTIME HOT NONNULL void audio_region_fill_stereo_ports (Region *self, const EngineProcessTimeInfo *const time_nfo, StereoPorts *stereo_ports)
 Fills audio data from the region.
float audio_region_detect_bpm (Region *self, GArray *candidates)
bool audio_region_validate (Region *self, double frames_per_tick)
 Sanity checking.
bool audio_region_fix_positions (Region *self, double frames_per_tick)
 Fixes off-by-one rounding errors when changing BPM or sample rate which result in the looped part being longer than there are actual frames in the clip.
void audio_region_free_members (Region *self)
 Frees members only but not the audio region itself.

Detailed Description

API for Regions inside audio Track's.

Definition in file audio_region.h.

Typedef Documentation

◆ RegionWidget

typedef struct _RegionWidget RegionWidget

Definition at line 18 of file audio_region.h.