10#ifndef __IO_AUDIO_FILE_H__
11#define __IO_AUDIO_FILE_H__
13#include "zrythm-config.h"
93 size_t num_frames_to_read,
119 const
char * filepath,
NONNULL_ARGS(1) bool audio_file_finish(AudioFile *self
Must be called when done reading or writing files (or when the operation was cancelled).
bool audio_file_read_metadata(AudioFile *self, GError **error)
Reads the metadata for the given file.
bool audio_file_read_simple(const char *filepath, float **frames, size_t *num_frames, AudioFileMetadata *metadata, size_t samplerate, GError **error)
Simple blocking API for reading and optionally resampling audio files.
NONNULL AudioFile * audio_file_new(const char *filepath)
Creates a new instance of an AudioFile for the given path.
bool audio_file_read_samples(AudioFile *self, bool in_parts, float *samples, size_t start_from, size_t num_frames_to_read, GError **error)
Reads the file into an internal float array (interleaved).
void * internal_data
Implemented in the source file.
char * filepath
Absolute path.