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

Audio utils. More...

#include <stdarg.h>
#include <stdbool.h>
#include "utils/types.h"
#include "utils/yaml.h"
Include dependency graph for audio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STRIP_SIZE   9
 Number of plugin slots per channel.
 

Enumerations

enum  BitDepth { BIT_DEPTH_16 , BIT_DEPTH_24 , BIT_DEPTH_32 }
 Bit depth. More...
 

Functions

BitDepth audio_bit_depth_from_pretty_str (const char *str)
 
const char * audio_bit_depth_to_pretty_str (BitDepth depth)
 
WARN_UNUSED_RESULT bool audio_write_raw_file (float *buff, size_t frames_already_written, size_t nframes, uint32_t samplerate, bool flac, BitDepth bit_depth, channels_t channels, const char *filename, GError **error)
 Writes the buffer as a raw file to the given path.
 
unsigned_frame_t audio_get_num_frames (const char *filepath)
 Returns the number of frames in the given audio file.
 
bool audio_frames_equal (const float *src1, const float *src2, size_t num_frames, float epsilon)
 Returns whether the frame buffers are equal.
 
bool audio_files_equal (const char *f1, const char *f2, size_t num_frames, float epsilon)
 Returns whether the file contents are equal.
 
bool audio_frames_empty (float *src, size_t num_frames)
 Returns whether the frame buffer is empty (zero).
 
float audio_detect_bpm (float *src, size_t num_frames, unsigned int samplerate, GArray *candidates)
 Detect BPM.
 
bool audio_file_is_silent (const char *filepath)
 
int audio_get_num_cores (void)
 Returns the number of CPU cores.
 

Detailed Description

Audio utils.

Definition in file audio.h.