#include <plugin.h>
Data Fields | |
bg_plugin_common_t | common |
Infos and functions common to all plugin types. | |
int(* | open )(void *priv, gavl_audio_format_t *format) |
Open plugin. | |
int(* | start )(void *priv) |
Start playback. | |
void(* | write_audio )(void *priv, gavl_audio_frame_t *frame) |
Write audio samples. | |
int(* | get_delay )(void *priv) |
Get the number of buffered audio samples. | |
void(* | stop )(void *priv) |
Stop playback. | |
void(* | close )(void *priv) |
Close plugin. |
This plugin type implements audio playback through a soundcard.
Infos and functions common to all plugin types.
int(* bg_oa_plugin_s::open)(void *priv, gavl_audio_format_t *format) |
Open plugin.
priv | The handle returned by the create() method | |
format | The format of the media source |
int(* bg_oa_plugin_s::start)(void *priv) |
Start playback.
priv | The handle returned by the create() method |
void(* bg_oa_plugin_s::write_audio)(void *priv, gavl_audio_frame_t *frame) |
Write audio samples.
priv | The handle returned by the create() method | |
frame | The audio frame to write. |
int(* bg_oa_plugin_s::get_delay)(void *priv) |
Get the number of buffered audio samples.
priv | The handle returned by the create() method |
void(* bg_oa_plugin_s::stop)(void *priv) |
Stop playback.
priv | The handle returned by the create() method |
void(* bg_oa_plugin_s::close)(void *priv) |
Close plugin.
priv | The handle returned by the create() method |