MLT 7.40.0
Multimedia Framework
mlt_audio.h
Go to the documentation of this file.
1
23#ifndef MLT_AUDIO_H
24#define MLT_AUDIO_H
25
26#include "mlt_export.h"
27#include "mlt_types.h"
28
45
46MLT_EXPORT mlt_audio mlt_audio_new();
47MLT_EXPORT void mlt_audio_close(mlt_audio self);
48MLT_EXPORT void mlt_audio_set_values(
49 mlt_audio self, void *data, int frequency, mlt_audio_format format, int samples, int channels);
50MLT_EXPORT void mlt_audio_get_values(mlt_audio self,
51 void **data,
52 int *frequency,
53 mlt_audio_format *format,
54 int *samples,
55 int *channels);
56MLT_EXPORT void mlt_audio_alloc_data(mlt_audio self);
57MLT_EXPORT void mlt_audio_free_data(mlt_audio self);
59MLT_EXPORT int mlt_audio_plane_count(mlt_audio self);
60MLT_EXPORT int mlt_audio_plane_size(mlt_audio self);
61MLT_EXPORT void mlt_audio_get_planes(mlt_audio self, uint8_t **planes);
62MLT_EXPORT void mlt_audio_silence(mlt_audio self, int samples, int start);
63MLT_EXPORT void mlt_audio_shrink(mlt_audio self, int samples);
64MLT_EXPORT void mlt_audio_reverse(mlt_audio self);
65MLT_EXPORT void mlt_audio_copy(
66 mlt_audio dst, mlt_audio src, int samples, int src_start, int dst_start);
67MLT_EXPORT int mlt_audio_calculate_frame_samples(float fps, int frequency, int64_t position);
68MLT_EXPORT int64_t mlt_audio_calculate_samples_to_position(float fps,
69 int frequency,
70 int64_t position);
71MLT_EXPORT const char *mlt_audio_format_name(mlt_audio_format format);
72MLT_EXPORT int mlt_audio_format_size(mlt_audio_format format, int samples, int channels);
77
78#endif
MLT_EXPORT void mlt_audio_get_values(mlt_audio self, void **data, int *frequency, mlt_audio_format *format, int *samples, int *channels)
MLT_EXPORT void mlt_audio_get_planes(mlt_audio self, uint8_t **planes)
MLT_EXPORT void mlt_audio_shrink(mlt_audio self, int samples)
MLT_EXPORT void mlt_audio_alloc_data(mlt_audio self)
MLT_EXPORT void mlt_audio_close(mlt_audio self)
MLT_EXPORT const char * mlt_audio_format_name(mlt_audio_format format)
MLT_EXPORT void mlt_audio_copy(mlt_audio dst, mlt_audio src, int samples, int src_start, int dst_start)
MLT_EXPORT int mlt_audio_calculate_frame_samples(float fps, int frequency, int64_t position)
MLT_EXPORT int mlt_audio_format_size(mlt_audio_format format, int samples, int channels)
MLT_EXPORT void mlt_audio_silence(mlt_audio self, int samples, int start)
MLT_EXPORT mlt_channel_layout mlt_audio_channel_layout_id(const char *name)
MLT_EXPORT int64_t mlt_audio_calculate_samples_to_position(float fps, int frequency, int64_t position)
MLT_EXPORT int mlt_audio_plane_size(mlt_audio self)
MLT_EXPORT int mlt_audio_channel_layout_channels(mlt_channel_layout layout)
MLT_EXPORT mlt_audio mlt_audio_new()
Allocate a new Audio object.
Definition mlt_audio.c:35
MLT_EXPORT mlt_channel_layout mlt_audio_channel_layout_default(int channels)
MLT_EXPORT void mlt_audio_reverse(mlt_audio self)
MLT_EXPORT void mlt_audio_set_values(mlt_audio self, void *data, int frequency, mlt_audio_format format, int samples, int channels)
MLT_EXPORT const char * mlt_audio_channel_layout_name(mlt_channel_layout layout)
MLT_EXPORT int mlt_audio_calculate_size(mlt_audio self)
MLT_EXPORT int mlt_audio_plane_count(mlt_audio self)
MLT_EXPORT void mlt_audio_free_data(mlt_audio self)
Provides forward definitions of all public types.
mlt_channel_layout
Definition mlt_types.h:67
void(* mlt_destructor)(void *)
pointer to destructor function
Definition mlt_types.h:307
mlt_audio_format
The set of supported audio formats.
Definition mlt_types.h:57
Audio class.
Definition mlt_audio.h:35
mlt_destructor release_data
Definition mlt_audio.h:42
mlt_audio_format format
Definition mlt_audio.h:38
void * data
Definition mlt_audio.h:36
mlt_destructor close
Definition mlt_audio.h:43
int channels
Definition mlt_audio.h:40
mlt_channel_layout layout
Definition mlt_audio.h:41
int frequency
Definition mlt_audio.h:37
int samples
Definition mlt_audio.h:39