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.
1 parent 4da91a4 commit d1e68b0Copy full SHA for d1e68b0
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