MLT  7.28.0
Data Structures | Functions
mlt_audio.h File Reference

Audio class. More...

#include "mlt_types.h"

Go to the source code of this file.

Data Structures

struct  mlt_audio_s
 Audio class. More...
 

Functions

void mlt_audio_alloc_data (mlt_audio self)
 
int mlt_audio_calculate_frame_samples (float fps, int frequency, int64_t position)
 
int64_t mlt_audio_calculate_samples_to_position (float fps, int frequency, int64_t position)
 
int mlt_audio_calculate_size (mlt_audio self)
 
int mlt_audio_channel_layout_channels (mlt_channel_layout layout)
 
mlt_channel_layout mlt_audio_channel_layout_default (int channels)
 
mlt_channel_layout mlt_audio_channel_layout_id (const char *name)
 
const char * mlt_audio_channel_layout_name (mlt_channel_layout layout)
 Get the short name for a channel layout. More...
 
void mlt_audio_close (mlt_audio self)
 
void mlt_audio_copy (mlt_audio dst, mlt_audio src, int samples, int src_start, int dst_start)
 
const char * mlt_audio_format_name (mlt_audio_format format)
 
int mlt_audio_format_size (mlt_audio_format format, int samples, int channels)
 
void mlt_audio_free_data (mlt_audio self)
 
void mlt_audio_get_planes (mlt_audio self, uint8_t **planes)
 
void mlt_audio_get_values (mlt_audio self, void **data, int *frequency, mlt_audio_format *format, int *samples, int *channels)
 
mlt_audio mlt_audio_new ()
 Allocate a new Audio object. More...
 
int mlt_audio_plane_count (mlt_audio self)
 
int mlt_audio_plane_size (mlt_audio self)
 
void mlt_audio_reverse (mlt_audio self)
 
void mlt_audio_set_values (mlt_audio self, void *data, int frequency, mlt_audio_format format, int samples, int channels)
 
void mlt_audio_shrink (mlt_audio self, int samples)
 
void mlt_audio_silence (mlt_audio self, int samples, int start)
 

Detailed Description

Audio class.

See also
mlt_audio_s

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

Function Documentation

◆ mlt_audio_alloc_data()

void mlt_audio_alloc_data ( mlt_audio  self)

◆ mlt_audio_calculate_frame_samples()

int mlt_audio_calculate_frame_samples ( float  fps,
int  frequency,
int64_t  position 
)

◆ mlt_audio_calculate_samples_to_position()

int64_t mlt_audio_calculate_samples_to_position ( float  fps,
int  frequency,
int64_t  position 
)

◆ mlt_audio_calculate_size()

int mlt_audio_calculate_size ( mlt_audio  self)

◆ mlt_audio_channel_layout_channels()

int mlt_audio_channel_layout_channels ( mlt_channel_layout  layout)

◆ mlt_audio_channel_layout_default()

mlt_channel_layout mlt_audio_channel_layout_default ( int  channels)

◆ mlt_audio_channel_layout_id()

mlt_channel_layout mlt_audio_channel_layout_id ( const char *  name)

◆ mlt_audio_channel_layout_name()

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

Parameters
layoutthe channel layout
Returns
a string for the name of the channel layout

◆ mlt_audio_close()

void mlt_audio_close ( mlt_audio  self)

◆ mlt_audio_copy()

void mlt_audio_copy ( mlt_audio  dst,
mlt_audio  src,
int  samples,
int  src_start,
int  dst_start 
)

◆ mlt_audio_format_name()

const char* mlt_audio_format_name ( mlt_audio_format  format)

◆ mlt_audio_format_size()

int mlt_audio_format_size ( mlt_audio_format  format,
int  samples,
int  channels 
)

◆ mlt_audio_free_data()

void mlt_audio_free_data ( mlt_audio  self)

◆ mlt_audio_get_planes()

void mlt_audio_get_planes ( mlt_audio  self,
uint8_t **  planes 
)

◆ mlt_audio_get_values()

void mlt_audio_get_values ( mlt_audio  self,
void **  data,
int *  frequency,
mlt_audio_format format,
int *  samples,
int *  channels 
)

◆ mlt_audio_new()

mlt_audio mlt_audio_new ( )

Allocate a new Audio object.

Returns
a new audio object with default values set

◆ mlt_audio_plane_count()

int mlt_audio_plane_count ( mlt_audio  self)

◆ mlt_audio_plane_size()

int mlt_audio_plane_size ( mlt_audio  self)

◆ mlt_audio_reverse()

void mlt_audio_reverse ( mlt_audio  self)

◆ mlt_audio_set_values()

void mlt_audio_set_values ( mlt_audio  self,
void *  data,
int  frequency,
mlt_audio_format  format,
int  samples,
int  channels 
)

◆ mlt_audio_shrink()

void mlt_audio_shrink ( mlt_audio  self,
int  samples 
)

◆ mlt_audio_silence()

void mlt_audio_silence ( mlt_audio  self,
int  samples,
int  start 
)