/** Query function for mode information * * @param mode Speex mode * @param request ioctl-type request (one of the SPEEX_* macros) * @param ptr Data exchanged to-from function * @return 0 if no error, -1 if request in unknown, -2 for invalid parameter */ int speex_mode_query(SpeexMode mode, int request, void *ptr);
/** Returns a handle to a newly created decoder state structure. For now, * the mode argument can be &nb_mode or &wb_mode . In the future, more modes * may be added. Note that for now if you have more than one channels to * decode, you need one state per channel. * * @param mode Speex mode (one of speex_nb_mode or speex_wb_mode) * @return A newly created decoder state or NULL if state allocation fails */ void *speex_decoder_init( SpeexMode *mode);
public static extern int speex_mode_query(ref SpeexMode mode, int request, IntPtr ptr);
/** * Returns a handle to a newly created Speex encoder state structure. For now, * the "mode" argument can be &nb_mode or &wb_mode . In the future, more modes * may be added. Note that for now if you have more than one channels to * encode, you need one state per channel. * * @param mode The mode to use (either speex_nb_mode or speex_wb.mode) * @return A newly created encoder state or NULL if state allocation fails */ void *speex_encoder_init(SpeexMode *mode);
//int speex_mode_query(const SpeexMode *mode, int request, void *ptr); public static extern int speex_mode_query(ref SpeexMode mode, int request, IntPtr ptr);