forked from cnlohr/mini-rv32ima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cnfa.patch
19 lines (18 loc) · 832 Bytes
/
cnfa.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/CNFA.h b/CNFA.h
index 60e657a..1a83a98 100644
--- a/CNFA.h
+++ b/CNFA.h
@@ -86,6 +86,14 @@ void RegCNFADriver( int priority, const char * name, CNFAInitFn * fn );
void __attribute__((constructor)) REGISTER##cnfadriver() { RegCNFADriver( priority, name, function ); }
#endif
+void * InitALSADriver( CNFACBType cb, const char * your_name, int reqSPSPlay, int reqSPSRec, int reqChannelsPlay, int reqChannelsRec, int sugBufferSize, const char * outputSelect, const char * inputSelect, void * opaque);
+
+static void CNFA_reg_drivers(void) {
+#if CNFA_LINUX
+ RegCNFADriver(10, "ALSA", InitALSADriver);
+#endif
+}
+
#if defined(WINDOWS) || defined(__WINDOWS__) || defined(_WINDOWS) \
|| defined(_WIN32) || defined(_WIN64) \
|| defined(WIN32) || defined(WIN64) \