libambix
the AMBIsonics eXchange library
|
AMBIsonics eXchange Library Interface. More...
Go to the source code of this file.
Classes | |
union | number32_t |
struct | ambix_matrix_t |
struct | ambix_info_t |
struct | ambix_marker_t |
struct | ambix_region_t |
Typedefs | |
typedef float | float32_t |
typedef double | float64_t |
typedef struct ambix_t_struct | ambix_t |
typedef struct ambix_matrix_t | ambix_matrix_t |
typedef struct ambix_info_t | ambix_info_t |
typedef struct ambix_marker_t | ambix_marker_t |
typedef struct ambix_region_t | ambix_region_t |
Functions | |
AMBIX_API ambix_t * | ambix_open (const char *path, const ambix_filemode_t mode, ambix_info_t *ambixinfo) |
Open an ambix file. More... | |
AMBIX_API ambix_err_t | ambix_close (ambix_t *ambix) |
Close an ambix handle. More... | |
AMBIX_API int64_t | ambix_seek (ambix_t *ambix, int64_t frames, int whence) |
Reposition the file pointer. More... | |
AMBIX_API int64_t | ambix_readf_int16 (ambix_t *ambix, int16_t *ambidata, int16_t *otherdata, int64_t frames) |
Read samples (as 16bit signed integer values) from the ambix file. | |
AMBIX_API int64_t | ambix_readf_int32 (ambix_t *ambix, int32_t *ambidata, int32_t *otherdata, int64_t frames) |
Read samples (as 32bit signed integer values) from the ambix file. | |
AMBIX_API int64_t | ambix_readf_float32 (ambix_t *ambix, float32_t *ambidata, float32_t *otherdata, int64_t frames) |
Read samples (as single precision floating point values) from the ambix file. | |
AMBIX_API int64_t | ambix_readf_float64 (ambix_t *ambix, float64_t *ambidata, float64_t *otherdata, int64_t frames) |
Read samples (as double precision floating point values) from the ambix file. | |
AMBIX_API int64_t | ambix_writef_int16 (ambix_t *ambix, const int16_t *ambidata, const int16_t *otherdata, int64_t frames) |
Write (16bit signed integer) samples to the ambix file. | |
AMBIX_API int64_t | ambix_writef_int32 (ambix_t *ambix, const int32_t *ambidata, const int32_t *otherdata, int64_t frames) |
Write (32bit signed integer) samples to the ambix file. | |
AMBIX_API int64_t | ambix_writef_float32 (ambix_t *ambix, const float32_t *ambidata, const float32_t *otherdata, int64_t frames) |
Write (32bit floating point) samples to the ambix file. | |
AMBIX_API int64_t | ambix_writef_float64 (ambix_t *ambix, const float64_t *ambidata, const float64_t *otherdata, int64_t frames) |
Write (64bit floating point) samples to the ambix file. | |
AMBIX_API struct SNDFILE_tag * | ambix_get_sndfile (ambix_t *ambix) |
Get the libsndfile handle associated with the ambix handle. More... | |
AMBIX_API uint32_t | ambix_get_num_markers (ambix_t *ambix) |
Get the number of stored markers within the ambix file. More... | |
AMBIX_API uint32_t | ambix_get_num_regions (ambix_t *ambix) |
Get the number of stored regions within the ambix file. More... | |
AMBIX_API ambix_marker_t * | ambix_get_marker (ambix_t *ambix, uint32_t id) |
Get one marker. More... | |
AMBIX_API ambix_region_t * | ambix_get_region (ambix_t *ambix, uint32_t id) |
Get one region. More... | |
AMBIX_API ambix_err_t | ambix_add_marker (ambix_t *ambix, ambix_marker_t *marker) |
Add a new marker to the ambix file. More... | |
AMBIX_API ambix_err_t | ambix_add_region (ambix_t *ambix, ambix_region_t *region) |
Add a new region to the ambix file. More... | |
AMBIX_API ambix_err_t | ambix_delete_markers (ambix_t *ambix) |
Deletes all markers in the ambix file. More... | |
AMBIX_API ambix_err_t | ambix_delete_regions (ambix_t *ambix) |
Deletes all regions in the ambix file. More... | |
AMBIX_API const ambix_matrix_t * | ambix_get_adaptormatrix (ambix_t *ambix) |
Get the adaptor matrix. More... | |
AMBIX_API ambix_err_t | ambix_set_adaptormatrix (ambix_t *ambix, const ambix_matrix_t *matrix) |
Set a matrix to be pre-multiplied. More... | |
AMBIX_API ambix_matrix_t * | ambix_matrix_create (void) |
Create a matrix. More... | |
AMBIX_API void | ambix_matrix_destroy (ambix_matrix_t *mtx) |
Destroy a matrix. More... | |
AMBIX_API ambix_matrix_t * | ambix_matrix_init (uint32_t rows, uint32_t cols, ambix_matrix_t *mtx) |
Initialize a matrix. More... | |
AMBIX_API void | ambix_matrix_deinit (ambix_matrix_t *mtx) |
De-initialize a matrix. More... | |
AMBIX_API ambix_matrix_t * | ambix_matrix_fill (ambix_matrix_t *matrix, ambix_matrixtype_t type) |
Fill a matrix according to specs. More... | |
AMBIX_API ambix_err_t | ambix_matrix_fill_data (ambix_matrix_t *mtx, const float32_t *data) |
Fill a matrix with values. More... | |
AMBIX_API ambix_matrix_t * | ambix_matrix_copy (const ambix_matrix_t *src, ambix_matrix_t *dest) |
Copy a matrix to another matrix. More... | |
AMBIX_API ambix_err_t | ambix_matrix_multiply_float32 (float32_t *dest, const ambix_matrix_t *mtx, const float32_t *source, int64_t frames) |
Multiply a matrix with (32bit floating point) data. | |
AMBIX_API ambix_err_t | ambix_matrix_multiply_float64 (float64_t *dest, const ambix_matrix_t *mtx, const float64_t *source, int64_t frames) |
Multiply a matrix with (64bit float) data. | |
AMBIX_API ambix_err_t | ambix_matrix_multiply_int32 (int32_t *dest, const ambix_matrix_t *mtx, const int32_t *source, int64_t frames) |
Multiply a matrix with (32bit signed integer) data. | |
AMBIX_API ambix_err_t | ambix_matrix_multiply_int16 (int16_t *dest, const ambix_matrix_t *mtx, const int16_t *source, int64_t frames) |
Multiply a matrix with (16 bit signed integer) data. | |
AMBIX_API uint32_t | ambix_order2channels (uint32_t order) |
Calculate the number of channels for a full 3d ambisonics set of a given order. More... | |
AMBIX_API int32_t | ambix_channels2order (uint32_t channels) |
Calculate the order of a full 3d ambisonics set for a given number of channels. More... | |
AMBIX_API int | ambix_is_fullset (uint32_t channels) |
Checks whether the channel can form a full 3d ambisonics set. More... | |
AMBIsonics eXchange Library Interface.
This file is part of libambix
typedef struct ambix_info_t ambix_info_t |
this is for passing data about the opened ambix file between the host application and the library
typedef struct ambix_marker_t ambix_marker_t |
struct for holding a marker
typedef struct ambix_matrix_t ambix_matrix_t |
a 2-dimensional floating point matrix
typedef struct ambix_region_t ambix_region_t |
struct for holding a region
typedef struct ambix_t_struct ambix_t |
opaque handle to an ambix file
typedef float float32_t |
32bit floating point number
typedef double float64_t |
64bit floating point number
enum ambix_err_t |
error codes returned by functions
enum ambix_fileformat_t |
enum ambix_filemode_t |
enum ambix_matrixtype_t |
ambix matrix types
enum ambix_sampleformat_t |
ambix sample formats