Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
audio_file.h File Reference

Audio file manipulation. More...

#include "zrythm-config.h"
#include <stdbool.h>
#include "utils/types.h"
#include <glib.h>
Include dependency graph for audio_file.h:

Go to the source code of this file.

Data Structures

struct  AudioFileMetadata
 
struct  AudioFile
 Audio file struct. More...
 

Functions

NONNULL AudioFileaudio_file_new (const char *filepath)
 Creates a new instance of an AudioFile for the given path.
 
bool audio_file_read_metadata (AudioFile *self, GError **error)
 Reads the metadata for the given file.
 
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).
 
 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_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 void audio_file_free (AudioFile *self)
 

Variables

GError ** error
 

Detailed Description

Audio file manipulation.

Definition in file audio_file.h.