|
libvisual
0.5.0
|
Public Member Functions | |
| VisPluginData * | get_plugin () |
| Returns the plugin object. More... | |
| bool | realize () |
| Realizes this Input. More... | |
| void | set_callback (std::function< bool(Audio &)> const &callback) |
| Sets a PCM data callback. More... | |
| Audio const & | get_audio () |
| bool | run () |
| Runs this Input. More... | |
Static Public Member Functions | |
| static InputPtr | load (std::string const &name) |
| Creates a new Input with a plugin of a given name. More... | |
Friends | |
| void | intrusive_ptr_add_ref (Input const *input) |
| void | intrusive_ptr_release (Input const *input) |
Definition at line 46 of file lv_input.h.
| VisPluginData * LV::Input::get_plugin | ( | ) |
|
static |
Creates a new Input with a plugin of a given name.
| name | Name of plugin to load |
Definition at line 63 of file lv_input.cpp.
| bool LV::Input::realize | ( | ) |
Realizes this Input.
Definition at line 93 of file lv_input.cpp.
| bool LV::Input::run | ( | ) |
Runs this Input.
This function will call the plugin upload() method to retrieve audio samples. If a custom callback is set via set_callback(), the callback will be used instead.
Definition at line 117 of file lv_input.cpp.
| void LV::Input::set_callback | ( | std::function< bool(Audio &)> const & | callback | ) |
Sets a PCM data callback.
Used for adding a custom upload function.
| callback | Callback |
Definition at line 107 of file lv_input.cpp.