summaryrefslogtreecommitdiffstats
path: root/apps/codec_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codec_thread.h')
-rw-r--r--apps/codec_thread.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/codec_thread.h b/apps/codec_thread.h
index a849e07d39..7056e2cdf5 100644
--- a/apps/codec_thread.h
+++ b/apps/codec_thread.h
@@ -24,11 +24,30 @@
#include <stdbool.h>
+/* codec identity */
int get_codec_base_type(int type);
const char *get_codec_filename(int cod_spec);
+
+/* codec thread */
+
+/* Audio MUST be stopped before requesting callback! */
void codec_thread_do_callback(void (*fn)(void),
unsigned int *codec_thread_id);
+
void codec_init_codec_api(void);
void make_codec_thread(void);
-
+void codec_thread_resume(void);
+bool is_codec_thread(void);
+#ifdef HAVE_PRIORITY_SCHEDULING
+int codec_thread_get_priority(void);
+int codec_thread_set_priority(int priority);
#endif
+
+/* codec commands - on audio thread only! */
+intptr_t codec_ack_msg(intptr_t data, bool stop_codec);
+bool codec_load(int hid, int cod_spec);
+void codec_stop(void);
+int codec_loaded(void);
+/* */
+
+#endif /* _CODEC_THREAD_H */