We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4da91a4 + d1e68b0 commit 6f78be3Copy full SHA for 6f78be3
src/SoundObjects/NullOutput.h
@@ -0,0 +1,22 @@
1
+//
2
+// NullObject.hpp
3
4
+// Created by smeyfroi on 2025-04-20.
5
6
+#pragma once
7
+
8
+#include "ofxSoundObject.h"
9
10
+// An output sink that discards incoming audio when a SoundObject stream
11
+// is being used live for audio analysis and output is not needed.
12
13
+// ...
14
+// soundStream.setup(settings);
15
+// soundStream.setInput(deviceInput);
16
+// soundStream.setOutput(nullOutput);
17
18
+// deviceInput.connectTo(*this).connectTo(nullOutput);
19
20
+class NullOutput: public ofxSoundOutput {
21
+ void process(ofSoundBuffer &input, ofSoundBuffer &output) override {};
22
+};
0 commit comments