mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
add api.getTime()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12149 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1ca5e2265e
commit
072ec6a7f2
12 files changed
+403
-84
No files matched your search
@@ -7120,21 +7120,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_speech_float_param_tts(void * jar
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_read_tts(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) {
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_read_tts(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
|
||||
int jresult ;
|
||||
switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ;
|
||||
void *arg2 = (void *) 0 ;
|
||||
switch_size_t *arg3 = (switch_size_t *) 0 ;
|
||||
uint32_t *arg4 = (uint32_t *) 0 ;
|
||||
switch_speech_flag_t *arg5 = (switch_speech_flag_t *) 0 ;
|
||||
switch_speech_flag_t *arg4 = (switch_speech_flag_t *) 0 ;
|
||||
switch_status_t result;
|
||||
|
||||
arg1 = (switch_speech_handle_t *)jarg1;
|
||||
arg2 = (void *)jarg2;
|
||||
arg3 = (switch_size_t *)jarg3;
|
||||
arg4 = (uint32_t *)jarg4;
|
||||
arg5 = (switch_speech_flag_t *)jarg5;
|
||||
result = (switch_status_t)switch_core_speech_read_tts(arg1,arg2,arg3,arg4,arg5);
|
||||
arg4 = (switch_speech_flag_t *)jarg4;
|
||||
result = (switch_status_t)switch_core_speech_read_tts(arg1,arg2,arg3,arg4);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
@@ -14084,10 +14082,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_feed_tts_get
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_set(void * jarg1, void * jarg2) {
|
||||
switch_speech_interface *arg1 = (switch_speech_interface *) 0 ;
|
||||
switch_status_t (*arg2)(switch_speech_handle_t *,void *,switch_size_t *,uint32_t *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,uint32_t *,switch_speech_flag_t *)) 0 ;
|
||||
switch_status_t (*arg2)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *) = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *)) 0 ;
|
||||
|
||||
arg1 = (switch_speech_interface *)jarg1;
|
||||
arg2 = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,uint32_t *,switch_speech_flag_t *))jarg2;
|
||||
arg2 = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *))jarg2;
|
||||
if (arg1) (arg1)->speech_read_tts = arg2;
|
||||
|
||||
}
|
||||
@@ -14096,10 +14094,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_set(v
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_interface_speech_read_tts_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_speech_interface *arg1 = (switch_speech_interface *) 0 ;
|
||||
switch_status_t (*result)(switch_speech_handle_t *,void *,switch_size_t *,uint32_t *,switch_speech_flag_t *) = 0 ;
|
||||
switch_status_t (*result)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *) = 0 ;
|
||||
|
||||
arg1 = (switch_speech_interface *)jarg1;
|
||||
result = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,uint32_t *,switch_speech_flag_t *)) ((arg1)->speech_read_tts);
|
||||
result = (switch_status_t (*)(switch_speech_handle_t *,void *,switch_size_t *,switch_speech_flag_t *)) ((arg1)->speech_read_tts);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
@@ -14584,6 +14582,150 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_memory_pool_get(void *
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_resampler_set(void * jarg1, void * jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_audio_resampler_t *arg2 = (switch_audio_resampler_t *) 0 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
arg2 = (switch_audio_resampler_t *)jarg2;
|
||||
if (arg1) (arg1)->resampler = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_resampler_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_audio_resampler_t *result = 0 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
result = (switch_audio_resampler_t *) ((arg1)->resampler);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_buffer_set(void * jarg1, void * jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_buffer_t *arg2 = (switch_buffer_t *) 0 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
arg2 = (switch_buffer_t *)jarg2;
|
||||
if (arg1) (arg1)->buffer = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_buffer_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_buffer_t *result = 0 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
result = (switch_buffer_t *) ((arg1)->buffer);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_dbuf_set(void * jarg1, void * jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_byte_t *arg2 = (switch_byte_t *) 0 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
arg2 = (switch_byte_t *)jarg2;
|
||||
if (arg1) (arg1)->dbuf = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_dbuf_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_byte_t *result = 0 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
result = (switch_byte_t *) ((arg1)->dbuf);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_dbuflen_set(void * jarg1, void * jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_size_t arg2 ;
|
||||
switch_size_t *argp2 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
argp2 = (switch_size_t *)jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0);
|
||||
return ;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
if (arg1) (arg1)->dbuflen = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_speech_handle_dbuflen_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
switch_size_t result;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
result = ((arg1)->dbuflen);
|
||||
jresult = new switch_size_t((switch_size_t &)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_samplerate_set(void * jarg1, unsigned long jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
arg2 = (uint32_t)jarg2;
|
||||
if (arg1) (arg1)->samplerate = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_samplerate_get(void * jarg1) {
|
||||
unsigned long jresult ;
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
uint32_t result;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
result = (uint32_t) ((arg1)->samplerate);
|
||||
jresult = (unsigned long)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_native_rate_set(void * jarg1, unsigned long jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
arg2 = (uint32_t)jarg2;
|
||||
if (arg1) (arg1)->native_rate = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_speech_handle_native_rate_get(void * jarg1) {
|
||||
unsigned long jresult ;
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
uint32_t result;
|
||||
|
||||
arg1 = (switch_speech_handle *)jarg1;
|
||||
result = (uint32_t) ((arg1)->native_rate);
|
||||
jresult = (unsigned long)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_speech_handle_private_info_set(void * jarg1, void * jarg2) {
|
||||
switch_speech_handle *arg1 = (switch_speech_handle *) 0 ;
|
||||
void *arg2 = (void *) 0 ;
|
||||
@@ -26238,6 +26380,18 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Api_ExecuteString(void * jarg1, char * jarg
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT char * SWIGSTDCALL CSharp_Api_getTime(void * jarg1) {
|
||||
char * jresult ;
|
||||
API *arg1 = (API *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
arg1 = (API *)jarg1;
|
||||
result = (char *)(arg1)->getTime();
|
||||
jresult = SWIG_csharp_string_callback((const char *)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_input_callback_state_t_function_set(void * jarg1, void * jarg2) {
|
||||
input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
|
||||
void *arg2 = (void *) 0 ;
|
||||
|
||||
@@ -52,6 +52,11 @@ public class Api : IDisposable {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string getTime() {
|
||||
string ret = freeswitchPINVOKE.Api_getTime(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1670,8 +1675,8 @@ public class freeswitch {
|
||||
freeswitchPINVOKE.switch_core_speech_float_param_tts(switch_speech_handle.getCPtr(sh), param, val);
|
||||
}
|
||||
|
||||
public static switch_status_t switch_core_speech_read_tts(switch_speech_handle sh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long flags) {
|
||||
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_read_tts(switch_speech_handle.getCPtr(sh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(flags));
|
||||
public static switch_status_t switch_core_speech_read_tts(switch_speech_handle sh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen, SWIGTYPE_p_unsigned_long flags) {
|
||||
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_read_tts(switch_speech_handle.getCPtr(sh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen), SWIGTYPE_p_unsigned_long.getCPtr(flags));
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -6066,7 +6071,7 @@ class freeswitchPINVOKE {
|
||||
public static extern void switch_core_speech_float_param_tts(HandleRef jarg1, string jarg2, double jarg3);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_read_tts")]
|
||||
public static extern int switch_core_speech_read_tts(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5);
|
||||
public static extern int switch_core_speech_read_tts(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_close")]
|
||||
public static extern int switch_core_speech_close(HandleRef jarg1, HandleRef jarg2);
|
||||
@@ -7868,6 +7873,42 @@ class freeswitchPINVOKE {
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_memory_pool_get")]
|
||||
public static extern IntPtr switch_speech_handle_memory_pool_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_resampler_set")]
|
||||
public static extern void switch_speech_handle_resampler_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_resampler_get")]
|
||||
public static extern IntPtr switch_speech_handle_resampler_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_buffer_set")]
|
||||
public static extern void switch_speech_handle_buffer_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_buffer_get")]
|
||||
public static extern IntPtr switch_speech_handle_buffer_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuf_set")]
|
||||
public static extern void switch_speech_handle_dbuf_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuf_get")]
|
||||
public static extern IntPtr switch_speech_handle_dbuf_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuflen_set")]
|
||||
public static extern void switch_speech_handle_dbuflen_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_dbuflen_get")]
|
||||
public static extern IntPtr switch_speech_handle_dbuflen_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samplerate_set")]
|
||||
public static extern void switch_speech_handle_samplerate_set(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_samplerate_get")]
|
||||
public static extern uint switch_speech_handle_samplerate_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_native_rate_set")]
|
||||
public static extern void switch_speech_handle_native_rate_set(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_native_rate_get")]
|
||||
public static extern uint switch_speech_handle_native_rate_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_speech_handle_private_info_set")]
|
||||
public static extern void switch_speech_handle_private_info_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
@@ -10568,6 +10609,9 @@ class freeswitchPINVOKE {
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_Api_ExecuteString")]
|
||||
public static extern string Api_ExecuteString(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_Api_getTime")]
|
||||
public static extern string Api_getTime(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_input_callback_state_t_function_set")]
|
||||
public static extern void input_callback_state_t_function_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
@@ -11255,36 +11299,6 @@ namespace FreeSWITCH.Native {
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_CoreSession {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_CoreSession(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_CoreSession() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_CoreSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.35
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
namespace FreeSWITCH.Native {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_FILE {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
@@ -12935,18 +12949,18 @@ namespace FreeSWITCH.Native {
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t {
|
||||
public class SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) {
|
||||
internal SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t() {
|
||||
protected SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t obj) {
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -14435,36 +14449,6 @@ namespace FreeSWITCH.Native {
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_SWITCH_DECLARE_CLASS {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_SWITCH_DECLARE_CLASS(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_SWITCH_DECLARE_CLASS() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_SWITCH_DECLARE_CLASS obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.35
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
namespace FreeSWITCH.Native {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_switch_event_node {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
@@ -23607,7 +23591,9 @@ namespace FreeSWITCH.Native {
|
||||
SWITCH_SPEECH_FLAG_PEEK = (1 << 1),
|
||||
SWITCH_SPEECH_FLAG_FREE_POOL = (1 << 2),
|
||||
SWITCH_SPEECH_FLAG_BLOCKING = (1 << 3),
|
||||
SWITCH_SPEECH_FLAG_PAUSE = (1 << 4)
|
||||
SWITCH_SPEECH_FLAG_PAUSE = (1 << 4),
|
||||
SWITCH_SPEECH_FLAG_OPEN = (1 << 5),
|
||||
SWITCH_SPEECH_FLAG_DONE = (1 << 6)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23754,6 +23740,71 @@ public class switch_speech_handle : IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
public switch_audio_resampler_t resampler {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_resampler_set(swigCPtr, switch_audio_resampler_t.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_resampler_get(swigCPtr);
|
||||
switch_audio_resampler_t ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_resampler_t(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_switch_buffer buffer {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_buffer_set(swigCPtr, SWIGTYPE_p_switch_buffer.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_buffer_get(swigCPtr);
|
||||
SWIGTYPE_p_switch_buffer ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_buffer(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_unsigned_char dbuf {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_dbuf_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_speech_handle_dbuf_get(swigCPtr);
|
||||
SWIGTYPE_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_switch_size_t dbuflen {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_dbuflen_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value));
|
||||
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
get {
|
||||
SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_speech_handle_dbuflen_get(swigCPtr), true);
|
||||
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint samplerate {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_samplerate_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = freeswitchPINVOKE.switch_speech_handle_samplerate_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint native_rate {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_native_rate_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = freeswitchPINVOKE.switch_speech_handle_native_rate_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_void private_info {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_handle_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
|
||||
@@ -23855,13 +23906,13 @@ public class switch_speech_interface : IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t speech_read_tts {
|
||||
public SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t speech_read_tts {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_speech_interface_speech_read_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t.getCPtr(value));
|
||||
freeswitchPINVOKE.switch_speech_interface_speech_read_tts_set(swigCPtr, SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_speech_interface_speech_read_tts_get(swigCPtr);
|
||||
SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long_p_unsigned_long__switch_status_t(cPtr, false);
|
||||
SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_speech_handle_p_void_p_switch_size_t_p_unsigned_long__switch_status_t(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user