audio/clip.h file

Audio clip.

Contents

Classes

struct AudioClip
Audio clips for the pool.

Typedefs

using AudioClip = struct AudioClip
Audio clips for the pool.

Functions

void audio_clip_init_loaded(AudioClip* self)
Inits after loading a Project.
auto audio_clip_new_from_file(const char* full_path) -> AudioClip*
Creates an audio clip from a file.
auto audio_clip_new_from_float_array(const float* arr, const long nframes, const channels_t channels, const char* name) -> AudioClip*
Creates an audio clip by copying the given float array.
auto audio_clip_new_recording(const channels_t channels, const long nframes, const char* name) -> AudioClip*
Create an audio clip while recording.
void audio_clip_write_to_file(const AudioClip* self, const char* filepath)
Writes the given audio clip data to a file.
void audio_clip_write_to_pool(const AudioClip* self)
Writes the clip to the pool as a wav file.