|
libpsynth 0.2.1
|
Utility class for writing async_base implementations. More...
#include <async_base.hpp>


Public Types | |
| typedef std::function< void(std::size_t)> | callback_type |
Public Member Functions | |
| async_base_impl (callback_type cb=callback_type()) | |
| virtual | ~async_base_impl () |
| async_state | state () const |
| void | set_callback (callback_type cb) |
Protected Member Functions | |
| void | set_state (async_state state) |
| void | process (std::size_t nframes) |
Utility class for writing async_base implementations.
This code actually was in async_base but it was factored out to ease writing async_base decorators.
| typedef std::function<void (std::size_t)> psynth::io::detail::async_base_impl::callback_type |
Reimplemented from psynth::io::async_base.
Reimplemented in psynth::io::alsa_raw_output, psynth::io::jack_raw_output, psynth::io::oss_raw_output, and psynth::io::thread_async.
| psynth::io::detail::async_base_impl::async_base_impl | ( | callback_type | cb = callback_type () | ) | [inline] |
| virtual psynth::io::detail::async_base_impl::~async_base_impl | ( | ) | [inline, virtual] |
| void psynth::io::detail::async_base_impl::process | ( | std::size_t | nframes | ) | [inline, protected] |
| void psynth::io::detail::async_base_impl::set_callback | ( | callback_type | cb | ) | [inline, virtual] |
Implements psynth::io::async_base.
| void psynth::io::detail::async_base_impl::set_state | ( | async_state | state | ) | [inline, protected] |
| async_state psynth::io::detail::async_base_impl::state | ( | ) | const [inline, virtual] |
Implements psynth::io::async_base.
1.7.4