bg_oa_plugin_s Struct Reference
[Audio output]
Audio output plugin.
More...
#include <plugin.h>
Detailed Description
Audio output plugin.
This plugin type implements audio playback through a soundcard.
Field Documentation
Infos and functions common to all plugin types.
Open plugin.
- Parameters:
-
| priv | The handle returned by the create() method - Parameters:
-
| format | The format of the media source |
The format will be changed to the nearest format, which is supported by the plugin. To convert the source format to the output format, use a gavl_audio_converter_t |
Start playback.
- Parameters:
-
| priv | The handle returned by the create() method |
Notify the plugin, that audio playback is about to begin.
Write audio samples.
- Parameters:
-
| priv | The handle returned by the create() method - Parameters:
-
| frame | The audio frame to write. |
|
Get the number of buffered audio samples.
- Parameters:
-
| priv | The handle returned by the create() method - Returns:
- The number of buffered samples (both soft- and hardware)
This function is used for A/V synchronization with the soundcard. If this function is NULL, software synchronization will be used |
Stop playback.
- Parameters:
-
| priv | The handle returned by the create() method |
Notify the plugin, that playback will stop. Playback can be starzed again with
start().
Close plugin.
- Parameters:
-
| priv | The handle returned by the create() method |
Close the plugin. After this call, the plugin can be opened with another format
The documentation for this struct was generated from the following file:
- /usr/src/packages/BUILD/gmerlin-1.0.0/include/gmerlin/plugin.h