Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
audio_input_provider.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6
7namespace pulp::format {
8
18 using ReadFn = bool (*)(void* context, std::size_t bus_index, std::size_t frame_count,
19 audio::BufferView<const float>& output) noexcept;
20
21 void* context = nullptr;
22 ReadFn read = nullptr;
23
24 explicit operator bool() const noexcept {
25 return context != nullptr && read != nullptr;
26 }
27};
28
29} // namespace pulp::format
Non-owning view over multi-channel audio sample data.
Definition buffer.hpp:30
What the product grants a device: the quota table indexed by capability tier and live thermal state.
Definition aax_editor.hpp:31
A host-owned, realtime-safe view provider for declared processor input buses.
Definition audio_input_provider.hpp:17
ReadFn read
Definition audio_input_provider.hpp:22
void * context
Definition audio_input_provider.hpp:21
bool(*)(void *context, std::size_t bus_index, std::size_t frame_count, audio::BufferView< const float > &output) noexcept ReadFn
Definition audio_input_provider.hpp:18