From 74f4f7b4c7228763fd923d2a27eb7d2515f89907 Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期五, 08 三月 2024 11:33:04 +0800
Subject: [PATCH] seaco with cifv2 (#1450)
---
runtime/onnxruntime/include/audio.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/runtime/onnxruntime/include/audio.h b/runtime/onnxruntime/include/audio.h
index 98f2169..9edd9c9 100644
--- a/runtime/onnxruntime/include/audio.h
+++ b/runtime/onnxruntime/include/audio.h
@@ -40,7 +40,16 @@
int global_end = 0; // the end of a frame in the global time axis. in ms
};
-class Audio {
+#ifdef _WIN32
+#ifdef _FUNASR_API_EXPORT
+#define DLLAPI __declspec(dllexport)
+#else
+#define DLLAPI __declspec(dllimport)
+#endif
+#else
+#define DLLAPI
+#endif
+class DLLAPI Audio {
private:
float *speech_data=nullptr;
int16_t *speech_buff=nullptr;
--
Gitblit v1.9.1