|
MLT
7.34.0
|
Audio class. More...
Go to the source code of this file.
Data Structures | |
| struct | mlt_audio_s |
| Audio class. More... | |
Functions | |
| MLT_EXPORT void | mlt_audio_alloc_data (mlt_audio self) |
| MLT_EXPORT int | mlt_audio_calculate_frame_samples (float fps, int frequency, int64_t position) |
| MLT_EXPORT int64_t | mlt_audio_calculate_samples_to_position (float fps, int frequency, int64_t position) |
| MLT_EXPORT int | mlt_audio_calculate_size (mlt_audio self) |
| MLT_EXPORT int | mlt_audio_channel_layout_channels (mlt_channel_layout layout) |
| MLT_EXPORT mlt_channel_layout | mlt_audio_channel_layout_default (int channels) |
| MLT_EXPORT mlt_channel_layout | mlt_audio_channel_layout_id (const char *name) |
| MLT_EXPORT const char * | mlt_audio_channel_layout_name (mlt_channel_layout layout) |
| Get the short name for a channel layout. More... | |
| MLT_EXPORT void | mlt_audio_close (mlt_audio self) |
| MLT_EXPORT void | mlt_audio_copy (mlt_audio dst, mlt_audio src, int samples, int src_start, int dst_start) |
| MLT_EXPORT const char * | mlt_audio_format_name (mlt_audio_format format) |
| MLT_EXPORT int | mlt_audio_format_size (mlt_audio_format format, int samples, int channels) |
| MLT_EXPORT void | mlt_audio_free_data (mlt_audio self) |
| MLT_EXPORT void | mlt_audio_get_planes (mlt_audio self, uint8_t **planes) |
| MLT_EXPORT void | mlt_audio_get_values (mlt_audio self, void **data, int *frequency, mlt_audio_format *format, int *samples, int *channels) |
| MLT_EXPORT mlt_audio | mlt_audio_new () |
| Allocate a new Audio object. More... | |
| MLT_EXPORT int | mlt_audio_plane_count (mlt_audio self) |
| MLT_EXPORT int | mlt_audio_plane_size (mlt_audio self) |
| 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 void | mlt_audio_shrink (mlt_audio self, int samples) |
| MLT_EXPORT void | mlt_audio_silence (mlt_audio self, int samples, int start) |
Audio class.
Copyright (C) 2020 Meltytech, LLC
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
| MLT_EXPORT void mlt_audio_alloc_data | ( | mlt_audio | self | ) |
| MLT_EXPORT int mlt_audio_calculate_frame_samples | ( | float | fps, |
| int | frequency, | ||
| int64_t | position | ||
| ) |
| MLT_EXPORT int64_t mlt_audio_calculate_samples_to_position | ( | float | fps, |
| int | frequency, | ||
| int64_t | position | ||
| ) |
| MLT_EXPORT int mlt_audio_calculate_size | ( | mlt_audio | self | ) |
| MLT_EXPORT int mlt_audio_channel_layout_channels | ( | mlt_channel_layout | layout | ) |
| MLT_EXPORT mlt_channel_layout mlt_audio_channel_layout_default | ( | int | channels | ) |
| MLT_EXPORT mlt_channel_layout mlt_audio_channel_layout_id | ( | const char * | name | ) |
| MLT_EXPORT const char* mlt_audio_channel_layout_name | ( | mlt_channel_layout | layout | ) |
Get the short name for a channel layout.
You do not need to deallocate the returned string. \member of mlt_frame_s
| layout | the channel layout |
| MLT_EXPORT void mlt_audio_close | ( | mlt_audio | self | ) |
| MLT_EXPORT void mlt_audio_copy | ( | mlt_audio | dst, |
| mlt_audio | src, | ||
| int | samples, | ||
| int | src_start, | ||
| int | dst_start | ||
| ) |
| MLT_EXPORT const char* mlt_audio_format_name | ( | mlt_audio_format | format | ) |
| MLT_EXPORT int mlt_audio_format_size | ( | mlt_audio_format | format, |
| int | samples, | ||
| int | channels | ||
| ) |
| MLT_EXPORT void mlt_audio_free_data | ( | mlt_audio | self | ) |
| MLT_EXPORT void mlt_audio_get_planes | ( | mlt_audio | self, |
| uint8_t ** | planes | ||
| ) |
| MLT_EXPORT void mlt_audio_get_values | ( | mlt_audio | self, |
| void ** | data, | ||
| int * | frequency, | ||
| mlt_audio_format * | format, | ||
| int * | samples, | ||
| int * | channels | ||
| ) |
| MLT_EXPORT mlt_audio mlt_audio_new | ( | ) |
Allocate a new Audio object.
| MLT_EXPORT int mlt_audio_plane_count | ( | mlt_audio | self | ) |
| MLT_EXPORT int mlt_audio_plane_size | ( | mlt_audio | self | ) |
| 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 void mlt_audio_shrink | ( | mlt_audio | self, |
| int | samples | ||
| ) |
| MLT_EXPORT void mlt_audio_silence | ( | mlt_audio | self, |
| int | samples, | ||
| int | start | ||
| ) |