|
Zrythm
a highly automated and intuitive digital audio workstation
|
Audio clips for the pool. More...
#include <dsp/clip.h>
Data Fields | |
| int | schema_version |
| char * | name |
| Name of the clip. | |
| sample_t * | frames |
| The audio frames, interleaved. | |
| unsigned_frame_t | num_frames |
| Number of frames per channel. | |
| sample_t * | ch_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. | |
Audio clips for the pool.
These should be loaded in the project's sample rate.
| BitDepth AudioClip::bit_depth |
| bpm_t AudioClip::bpm |
| sample_t* AudioClip::ch_frames[16] |
| channels_t AudioClip::channels |
| char* AudioClip::file_hash |
| unsigned_frame_t AudioClip::frames_written |
| 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.
| unsigned_frame_t AudioClip::num_frames |
| int AudioClip::samplerate |
| bool AudioClip::use_flac |