@@ -58,31 +58,31 @@ extern "C" {
58
58
#define RADE_FS_16000 16000 // speech sample rate
59
59
60
60
// note single context only in this version, one context has one Tx, and one Rx
61
- void rade_open (char model_file []);
62
- void rade_close (void );
61
+ struct rade * rade_open (char model_file []);
62
+ void rade_close (struct * rade );
63
63
64
64
// Allows API users to determine if the API has changed
65
65
int rade_version (void );
66
66
67
67
// helpers to set up arrays
68
- int rade_n_tx_out (void );
69
- int rade_max_nin (void );
70
- int rade_n_features_in_out (void );
68
+ int rade_n_tx_out (struct * rade );
69
+ int rade_max_nin (struct * rade );
70
+ int rade_n_features_in_out (struct * rade );
71
71
72
72
// Note vocoder is not encapsulated in API in this version
73
- void rade_tx (RADE_COMP tx_out [], float features_in []);
73
+ void rade_tx (struct * rade , RADE_COMP tx_out [], float features_in []);
74
74
75
75
// call me before each call to rade_rx(), provide nin samples to rx_in[]
76
- int rade_nin (void );
76
+ int rade_nin (struct * rade , void );
77
77
78
78
// returns non-zero if features[] contains valid output
79
- int rade_rx (float features_out [], RADE_COMP rx_in []);
79
+ int rade_rx (struct * rade , float features_out [], RADE_COMP rx_in []);
80
80
81
81
// returns non-zero if Rx is currently in sync
82
- int rade_sync (void );
82
+ int rade_sync (struct * rade );
83
83
84
84
// returns the current frequency offset of the Rx signal ( when rade_sync()!=0 )
85
- float rade_freq_offset (void );
85
+ float rade_freq_offset (struct * rade );
86
86
87
87
#ifdef __cplusplus
88
88
}
0 commit comments