| 1 |
/* |
| 2 |
* kali/Kali/kali.h - Shim for Kali |
| 3 |
* to be able to build the Kali module without the Kali SDK. |
| 4 |
* |
| 5 |
* Copyright (C) 2018 Hypra |
| 6 |
* |
| 7 |
* This is free software; you can redistribute it and/or modify it |
| 8 |
* under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2, or (at your option) |
| 10 |
* any later version. |
| 11 |
* |
| 12 |
* This software is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
typedef struct { |
| 22 |
int bits; |
| 23 |
int num_channels; |
| 24 |
int sample_rate; |
| 25 |
int num_samples; |
| 26 |
const signed short *samples; |
| 27 |
} AudioTrackKali; |
| 28 |
|
| 29 |
extern "C" { |
| 30 |
|
| 31 |
extern bool initGlobal(void); |
| 32 |
extern bool initParle(void); |
| 33 |
extern bool initTrans(void); |
| 34 |
extern bool initAnalyse(void); |
| 35 |
extern bool initKali(void); |
| 36 |
|
| 37 |
extern const AudioTrackKali *GetBufMultiKaliStd(short nK); |
| 38 |
extern void SetSortieBufMultiKaliStd(short nK, bool sortieBuf); |
| 39 |
extern void SetSortieSonMultiKaliStd(short nK, bool sortieSon); |
| 40 |
|
| 41 |
extern short GetDebitDefautKaliStd(void); |
| 42 |
extern short GetDebitMinKaliStd(void); |
| 43 |
extern short GetDebitMaxKaliStd(void); |
| 44 |
extern void SetDebitKali(short debit); |
| 45 |
|
| 46 |
extern short GetVolumeDefautKaliStd(void); |
| 47 |
extern short GetVolumeMinKaliStd(void); |
| 48 |
extern short GetVolumeMaxKaliStd(void); |
| 49 |
extern void SetVolumeKali(short volume); |
| 50 |
|
| 51 |
extern short GetHauteurDefautKaliStd(void); |
| 52 |
extern short GetHauteurMinKaliStd(void); |
| 53 |
extern short GetHauteurMaxKaliStd(void); |
| 54 |
extern void SetHauteurKali(short hauteur); |
| 55 |
|
| 56 |
extern void SetModeLectureKali(short modeLecture); |
| 57 |
|
| 58 |
extern short GetNLangueVoixKaliStd(short nVoix); |
| 59 |
extern char *GetNomLangueKali(short nLangue, char *nomLangue); |
| 60 |
extern void SetLangueKali(short nLangue); |
| 61 |
extern short GetNbVoixKali(void); |
| 62 |
extern char *GetNomVoixKali(short nVoix, char *nomVoix); |
| 63 |
extern void SetVoixKali(short nVoix); |
| 64 |
|
| 65 |
extern short MessageKali(unsigned char* texte); |
| 66 |
extern short QueryIndexKali(void); |
| 67 |
|
| 68 |
extern bool quitteGlobal(void); |
| 69 |
extern bool quitteParle(void); |
| 70 |
extern bool quitteTrans(void); |
| 71 |
extern bool quitteAnalyse(void); |
| 72 |
|
| 73 |
} |