| 1 |
Using Speex on Symbian OS |
| 2 |
Conrad Parker and Colin Ward, CSIRO Australia, July 2004 |
| 3 |
|
| 4 |
|
| 5 |
Introduction |
| 6 |
------------ |
| 7 |
|
| 8 |
The symbian/ directory contains the following files for Symbian's abuild tool: |
| 9 |
|
| 10 |
bld.inf Component definition file |
| 11 |
speex.mmp Project specification file |
| 12 |
config.h Configuration options for both emulator and device builds |
| 13 |
|
| 14 |
|
| 15 |
Developing applications for libspeex for Symbian OS |
| 16 |
--------------------------------------------------- |
| 17 |
|
| 18 |
Any references to the statically defined SpeexMode structures must be |
| 19 |
replaced by a call to a speex_lib_get_mode () for that mode. |
| 20 |
|
| 21 |
* References to the statically defined array speex_mode_list[modeID] |
| 22 |
must be replaced by a call to speex_lib_get_mode (modeID): |
| 23 |
|
| 24 |
- mode = speex_mode_list[modeID]; |
| 25 |
+ mode = speex_lib_get_mode (modeID); |
| 26 |
|
| 27 |
* References to the statically defined mode structures must be replaced: |
| 28 |
|
| 29 |
SpeexMode * mode1, * mode2, * mode3; |
| 30 |
|
| 31 |
- mode1 = &speex_nb_mode; |
| 32 |
+ mode1 = speex_lib_get_mode (SPEEX_MODEID_NB); |
| 33 |
|
| 34 |
- mode2 = &speex_wb_mode; |
| 35 |
+ mode2 = speex_lib_get_mode (SPEEX_MODEID_WB); |
| 36 |
|
| 37 |
- mode3 = &speex_uwb_mode; |
| 38 |
+ mode3 = speex_lib_get_mode (SPEEX_MODEID_UWB); |
| 39 |
|
| 40 |
Note that the constants SPEEX_MODEID_NB, SPEEX_MODEID_WB and |
| 41 |
SPEEX_MODEID_UWB were introduced in libspeex 1.1.6, and are |
| 42 |
defined in <speex/speex.h>. speex_lib_get_mode() was introduced |
| 43 |
in libspeex 1.1.7 and is declared in <speex/speex.h>. |