summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2024-05-12 17:10:01 +0200
committerMikhail Burakov <mburakov@mailbox.org>2024-05-12 17:10:01 +0200
commit35702d95a8ae34279c0a21035a3b7f9a7286dcfa (patch)
treeb57d737bddcaccb54055b1f7657b327f38ed2192 /audio.c
parent3a0242c399e274323d8a68cc45a063b1b2c3bbcd (diff)
Make pipewire and audio capturing optional
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio.c b/audio.c
index 358382a..0395748 100644
--- a/audio.c
+++ b/audio.c
@@ -15,6 +15,8 @@
* along with streamer. If not, see <https://www.gnu.org/licenses/>.
*/
+#ifdef USE_PIPEWIRE
+
#include "audio.h"
#include <errno.h>
@@ -277,3 +279,5 @@ void AudioContextDestroy(struct AudioContext* audio_context) {
free(audio_context);
pw_deinit();
}
+
+#endif // USE_PIPEWIRE