aboutsummaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-06-08 10:52:37 -0700
committerChris Robinson <[email protected]>2021-06-08 10:52:37 -0700
commitdebb932573010fb7b260f56d618644dbadd2e6b1 (patch)
tree1664315e916e7899ed1a2b4c5c68173755f85884 /core/device.h
parent58a9549a5886fe91aba698abb4e6e4c0c94f129e (diff)
Add an option to mix directly in the JACK callback
Diffstat (limited to 'core/device.h')
-rw-r--r--core/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/device.h b/core/device.h
index 4cc822cc..ce9f4ea4 100644
--- a/core/device.h
+++ b/core/device.h
@@ -258,6 +258,7 @@ struct DeviceBase {
inline void postProcess(const size_t SamplesToDo)
{ if LIKELY(PostProcess) (this->*PostProcess)(SamplesToDo); }
+ void renderSamples(const al::span<float*> outBuffers, const uint numSamples);
void renderSamples(void *outBuffer, const uint numSamples, const size_t frameStep);
/* Caller must lock the device state, and the mixer must not be running. */
@@ -269,6 +270,9 @@ struct DeviceBase {
void handleDisconnect(const char *msg, ...);
DISABLE_ALLOC()
+
+private:
+ uint renderSamples(const uint numSamples);
};