AudioClip struct
#include <audio/clip.h>
Audio clips for the pool.
Contents
- Reference
These should be loaded in the project's sample rate.
Public variables
- char* name
- Name of the clip.
-
sample_
t* frames - The audio frames, interleaved.
- long num_frames
- Number of frames per channel.
-
sample_
t* ch_frames - 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.
- int pool_id
- ID in the audio pool.
- long frames_written
- Frames already written to the file.
- gint64 last_write
- Time the last write took place.
Variable documentation
long AudioClip:: frames_written
Frames already written to the file.
Used when writing in chunks/parts.
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.