build/fix-audio-build.patch
2022-09-27 08:43:13 +02:00

46 lines
1.5 KiB
Diff

From 0cc8f8d2a24526bd5baafb2fd89a991ad0218b7b Mon Sep 17 00:00:00 2001
From: nyyu <mail@nyyu.dev>
Date: Sun, 25 Sep 2022 14:52:01 +0200
Subject: [PATCH] audio: fix build
Change-Id: I6d76b39be5cb0e6fee9d0154f2d84b61e386fe32
---
visualizer/offload_visualizer.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/visualizer/offload_visualizer.c b/visualizer/offload_visualizer.c
index 0166ac2..f38bed9 100644
--- a/visualizer/offload_visualizer.c
+++ b/visualizer/offload_visualizer.c
@@ -38,7 +38,13 @@ enum {
};
typedef struct effect_context_s effect_context_t;
-typedef struct output_context_s output_context_t;
+
+typedef struct output_context_s {
+ struct listnode outputs_list_node; /* node in active_outputs_list */
+ audio_io_handle_t handle; /* io handle */
+ struct listnode effects_list; /* list of effects attached to this output */
+} output_context_t;
+
/* effect specific operations. Only the init() and process() operations must be defined.
* Others are optional.
@@ -72,12 +78,6 @@ struct effect_context_s {
effect_ops_t ops;
};
-typedef struct output_context_s {
- struct listnode outputs_list_node; /* node in active_outputs_list */
- audio_io_handle_t handle; /* io handle */
- struct listnode effects_list; /* list of effects attached to this output */
-} output_context_t;
-
/* maximum time since last capture buffer update before resetting capture buffer. This means
that the framework has stopped playing audio and we must start returning silence */
--
2.37.3