Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
AudioClip Struct Reference

Audio clips for the pool. More...

#include <dsp/clip.h>

Data Fields

int schema_version
 
char * name
 Name of the clip.
 
sample_tframes
 The audio frames, interleaved.
 
unsigned_frame_t num_frames
 Number of frames per channel.
 
sample_tch_frames [16]
 Per-channel frames for convenience.
 
channels_t channels
 Number of channels.
 
bpm_t bpm
 BPM of the clip, or BPM of the project when the clip was first loaded.
 
int samplerate
 Samplerate of the clip, or samplerate when the clip was imported into the project.
 
BitDepth bit_depth
 Bit depth of the clip when the clip was imported into the project.
 
bool use_flac
 Whether the clip should use FLAC when being serialized.
 
int pool_id
 ID in the audio pool.
 
char * file_hash
 File hash, used for checking if a clip is already written to the pool.
 
unsigned_frame_t frames_written
 Frames already written to the file, per channel.
 
gint64 last_write
 Time the last write took place.
 

Detailed Description

Audio clips for the pool.

These should be loaded in the project's sample rate.

Definition at line 30 of file clip.h.

Field Documentation

◆ bit_depth

BitDepth AudioClip::bit_depth

Bit depth of the clip when the clip was imported into the project.

Definition at line 67 of file clip.h.

◆ bpm

bpm_t AudioClip::bpm

BPM of the clip, or BPM of the project when the clip was first loaded.

Definition at line 55 of file clip.h.

◆ ch_frames

sample_t* AudioClip::ch_frames[16]

Per-channel frames for convenience.

Definition at line 46 of file clip.h.

◆ channels

channels_t AudioClip::channels

Number of channels.

Definition at line 49 of file clip.h.

◆ file_hash

char* AudioClip::file_hash

File hash, used for checking if a clip is already written to the pool.

Definition at line 78 of file clip.h.

◆ frames

sample_t* AudioClip::frames

The audio frames, interleaved.

Definition at line 38 of file clip.h.

◆ frames_written

unsigned_frame_t AudioClip::frames_written

Frames already written to the file, per channel.

Used when writing in chunks/parts.

Definition at line 85 of file clip.h.

◆ last_write

gint64 AudioClip::last_write

Time the last write took place.

This is used so that we can write every x ms instead of all the time.

See also
AudioClip.frames_written.

Definition at line 95 of file clip.h.

◆ name

char* AudioClip::name

Name of the clip.

Definition at line 35 of file clip.h.

◆ num_frames

unsigned_frame_t AudioClip::num_frames

Number of frames per channel.

Definition at line 41 of file clip.h.

◆ pool_id

int AudioClip::pool_id

ID in the audio pool.

Definition at line 74 of file clip.h.

◆ samplerate

int AudioClip::samplerate

Samplerate of the clip, or samplerate when the clip was imported into the project.

Definition at line 61 of file clip.h.

◆ schema_version

int AudioClip::schema_version

Definition at line 32 of file clip.h.

◆ use_flac

bool AudioClip::use_flac

Whether the clip should use FLAC when being serialized.

Definition at line 71 of file clip.h.


The documentation for this struct was generated from the following file: