search for: speex_lib_get_mod

Displaying 20 results from an estimated 54 matches for "speex_lib_get_mod".

Did you mean: speex_lib_get_mode
2017 Nov 03
1
[PATCH] Check for _WIN32 instead of WIN32 in preprocessor checks
...ons(-) diff --git a/include/speex/speex.h b/include/speex/speex.h index 28c4b44d..34919e2f 100644 --- a/include/speex/speex.h +++ b/include/speex/speex.h @@ -412,7 +412,7 @@ extern const SpeexMode * const speex_mode_list[SPEEX_NB_MODES]; /** Obtain one of the modes available */ const SpeexMode * speex_lib_get_mode (int mode); -#ifndef WIN32 +#ifndef _WIN32 /* We actually override the function in the narrowband case so that we can avoid linking in the wideband stuff */ #define speex_lib_get_mode(mode) ((mode)==SPEEX_MODEID_NB ? &speex_nb_mode : speex_lib_get_mode (mode)) #endif diff --git a/libspeex...
2007 Feb 09
1
speex in C# please help
...Ptr enc; public IntPtr dec_init; public IntPtr dec_destroy; public IntPtr dec; public IntPtr enc_ctl; public IntPtr dec_ctl; } #endregion #region Exported Methods [DllImport(libpath)] public static extern void *speex_encoder_init(ref SpeexMode modein); [DllImport(libpath,EntryPoint="speex_lib_get_mode")] public static extern IntPtr speex_lib_get_mode (int modein); [DllImport(libpath)] public static extern int speex_encoder_ctl(void *state , int request , void *ptr); [DllImport(libpath)] public static extern int speex_encoder_settings(void *state , int complexity , int samplingrate,int...
2008 Nov 13
2
decoded sample is completely differen from original one
...0x6372, 0x6B67, 0x6577, 0x2762, 0x6F34, 0x6220, 0x345D, 0x7730, 0x3638, 0x7935, 0x7475, 0x5B63, 0x306E, 0x3371, 0x7738, 0x7432, 0x5B79, 0x676E, 0x665D, 0x6376, 0x696F, 0x6830, 0x6577, 0x6D74}; state = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); speex_encoder_ctl(state, SPEEX_SET_QUALITY, &quality); speex_bits_init(&bits); speex_bits_reset(&bits); speex_encode_int(state, &input[0], &bits); speex_bits_insert_terminator(&bits); * nbBytes = speex_bits_write(&bits, encSamples...
2005 Sep 22
1
about SPEEX API
...re was another problem. I think many pepople was ask you about that problem. Yes. It's DLL static variables named "speex_nb_mode", "speex_wb_mode", "speex_uwb_mode". There is no declaration of it in DLL file. Somebody give a solution: instead of this data use "speex_lib_get_mode". But there is NO declaration of this function in DLL file (I tryed to find it in latest available version for Win32 too). I was need to modificate speex source and rebuild it. Just add declaration of "speex_lib_get_mode". Now it's all works good for me. Thank you again. So, may...
2011 Nov 16
2
Just getting noise
...of the encoder*/ ? ? ? ? ? ? ? ? ? ? ? ?void *state; ? ? ? ? ? ? ? ? ? ? ? ?/*Holds bits so they can be read and written to by the Speex routines*/ ? ? ? ? ? ? ? ? ? ? ? ?SpeexBits bits; ? ? ? ? ? ? ? ? ? ? ? ?int i, tmp; ? ? ? ? ? ? ? ? ? ? ? ?const SpeexMode* mode; ? ? ? ? ? ? ? ? ? ? ? ?mode = speex_lib_get_mode (SPEEX_MODEID_NB); ? ? ? ? ? ? ? ? ? ? ? ?/*Create a new encoder state in narrowband mode*/ ? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode); ? ? ? ? ? ? ? ? ? ? ? ?/*Set the quality to 8 (15 kbps)*/ ? ? ? ? ? ? ? ? ? ? ? ?tmp=8; ? ? ? ? ? ? ? ? ? ? ? ?speex_encoder_ctl(state, SPEEX_SET_Q...
2007 Feb 13
1
Re: Speex-dev Digest, Vol 33, Issue 10
...tPtr dec; > > public IntPtr enc_ctl; > > public IntPtr dec_ctl; > > } > > #endregion > > #region Exported Methods > > [DllImport(libpath)] > > public static extern void *speex_encoder_init(ref SpeexMode modein); > > [DllImport(libpath,EntryPoint="speex_lib_get_mode")] > > public static extern IntPtr speex_lib_get_mode (int modein); > > [DllImport(libpath)] > > public static extern int speex_encoder_ctl(void *state , int request , void *ptr); > > [DllImport(libpath)] > > public static extern int speex_encoder_settings(void *...
2006 Dec 29
0
using speex in C#
...rrectly firstly I advice to you examination speexenc and speexdec projects. I have used unsafe code and fixed statements in C#. I have added following method to library and I used that instead of speex_encoder_init simply. void *speex_encoder_init_new(int modeID) { const SpeexMode *mode; mode = speex_lib_get_mode(modeID); return mode->enc_init(mode); } Maybe following codes that I have been using in a class can help you. /* structs */ public struct SpeexBits { char *chars; /* "raw" data */ int nbBits; /* Total number of bits stored in the stream*/ int charPtr; /* Position of the b...
2010 Jul 20
2
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
As for me - speex_echo_cancellation is a better choise. Try using it in capture thread instead of those speex_echo_capture and speex_echo_playback functions. And please, describe your problem in details. Cause the fact that you "didn get echo cancellation" doesn't mean you are doing smth wrong. Regards, Anton A. Shpakovsky -----Original Message----- From: speex-dev-bounces at
2011 Nov 16
2
Just getting noise
...? ? ? ? ? ? ? ? ? ? ? ?/*Holds bits so they can be read and written to >> by the Speex routines*/ >> ? ? ? ? ? ? ? ? ? ? ? ?SpeexBits bits; >> ? ? ? ? ? ? ? ? ? ? ? ?int i, tmp; >> >> ? ? ? ? ? ? ? ? ? ? ? ?const SpeexMode* mode; >> ? ? ? ? ? ? ? ? ? ? ? ?mode = speex_lib_get_mode (SPEEX_MODEID_NB); >> >> ? ? ? ? ? ? ? ? ? ? ? ?/*Create a new encoder state in narrowband mode*/ >> ? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode); >> >> ? ? ? ? ? ? ? ? ? ? ? ?/*Set the quality to 8 (15 kbps)*/ >> ? ? ? ? ? ? ? ? ? ? ? ?tmp=8; >&gt...
2004 Nov 03
2
libspeex.dll
hello, we start to develop an open source project. This project is a VoIp application with the same features like "Teamspeak" (http://www.goteamspeak.com). Our test application run in peer to peer mode under windows 2000 and above. At the moment we are using the gsm codec (13 kbps bandwidth). Later there will be a port for *unix systems. As aforementioned the project will be released
2005 Jun 15
1
Problem with win32 libspeex-1.1.9 dynamic dll
Hello, This is the first time I'm writing to developers mailing lists, so be patient with me. The win32/speex.def -file seems to be missing line: "speex_lib_get_mode" This causes that function to not to be exported. I haven't yet tested the fix. -- Kind Regards / Yst?v?llisin terveisin, Tero Keski-Valkama Software engineer (+358) 41 5260 920 (+358) 40 7069 762 tero.keski-valkama@finnpos.fi Finnpos Systems Oy Vestonkulma 2 FI 33730 TAMPERE Suom...
2006 Dec 28
0
using speex in C#
...uot;chars") int overflow; // Set to one if we try to read past the valid data int buf_size; // Allocated size for buffer int reserved1; // Reserved for future use IntPtr reserved2; // Reserved for future use } [DllImport("libspeex.dll")] public static extern IntPtr speex_lib_get_mode(int mode); // Obtain one of the modes available [DllImport("libspeex.dll")] public static extern IntPtr speex_encoder_init(ref SpeexMode mode); [DllImport("libspeex.dll")] public static extern void speex_bits_init(ref SpeexBits bits); [DllImport("libspeex.dll"...
2007 Apr 11
0
Problem with speex
...How I can set MONO mode in decode? My Code: smpRt:=32000; n:=10; encbits: TSpeexBits; encstate: Pointer; encframe: integer; decbits: TSpeexBits; decstate: Pointer; decframe: integer; buffEnc: array of single; buffDec: array of single; encstate := speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); speex_encoder_ctl(encstate,SPEEX_SET_SAMPLING_RATE,@smpRt); speex_encoder_ctl(encstate,SPEEX_SET_QUALITY,@n); speex_encoder_ctl(encstate,SPEEX_GET_FRAME_SIZE,@encframe); speex_bits_init(@encbits); SetLength(buffEnc,encframe); enh:=0; speex_bits_init(@decbits); decstate := speex_...
2007 Dec 12
1
Speex 1.2beta3 is out!
...compiled version provided > > today, I am getting "unresolved external symbol _speex_wb_mode". > > I am probably missing some setting with VS6.0 linker... (I am a bit new to > > windows too) > > If anyone could point it out, I would appreciate it. Try to use "speex_lib_get_mode(SPEEX_MODEID_WB)" call instead of using "speex_wb_mode" directly in your code. MS is tricky about exporting variables from DLLs. -- Regards, Alexander Chemeris. SIPez LLC. SIP VoIP, IM and Presence Consulting http://www.SIPez.com tel: +1 (617) 273-4000
2008 Jan 18
1
Questions about the Xcode projects and a bug found
...In building the Speex framework, I noticed that Speex_UB.xcodeproj is including several files that don't exist anymore as well as missing files that were added since it was last updated. Also, modes_wb.c is not included in either framework project which causes a link error when I call speex_lib_get_mode(). Vince Tagle <vtagle@newsguy.com>
2008 Nov 14
0
decoded sample is completely differen from original one
...0x6372, 0x6B67, 0x6577, 0x2762, 0x6F34, 0x6220, 0x345D, 0x7730, > 0x3638, 0x7935, 0x7475, 0x5B63, 0x306E, 0x3371, 0x7738, 0x7432, > 0x5B79, 0x676E, 0x665D, 0x6376, 0x696F, 0x6830, 0x6577, 0x6D74}; > > state = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); > speex_encoder_ctl(state, SPEEX_SET_QUALITY, &quality); > > speex_bits_init(&bits); > speex_bits_reset(&bits); > > speex_encode_int(state, &input[0], &bits); > speex_bits_insert_terminator(&bits); > > * nbB...
2009 Apr 13
0
encoding -> decoding doesnt work
...write it back in the same buffer. no compiling errors and no errors during runtime, but from the sample of 5 seconds only a short noise is all I get. I hope you have any ideas! kind regards juergen SpeexBits bits; void *enc_state; speex_bits_init(&bits); const SpeexMode *mode; mode = speex_lib_get_mode (SPEEX_MODEID_WB); enc_state = speex_encoder_init(mode); int frame_size = 0; speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size); int tmp = 16000; speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &tmp); tmp = 4; speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &...
2010 Mar 04
0
using speex to connect to asterisk
Hi, I'm trying to use speex codec in iax client to connect to asterisk (all last version) It seems that when I use speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)) Instead of speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)) Asterisk try to downscale the codec to ulaw. Please advice, ofer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100304/96e2...
2011 Aug 29
0
First encoded byte, mode bits and wideband bit
...uld expect that the MSB of the first encoded byte is 1 (wideband) and that the next 4 bits would be 8 (because I requested mode 8)...but this is the mapping I see here is my code ? ? Init Encoder: speex_bits_init(&thisEncoder->bits); thisEncoder->speexEncoderInstance = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); speex_encoder_ctl(thisEncoder->speexEncoderInstance, SPEEX_SET_QUALITY, &encodermode); ? where encodermode = 8 ? ? Init Decoder: thisDecoder->speexDecoderInstance = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); speex_decoder_ctl(thisDecoder->speexDecoderI...
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...S X 10.6 as well as Windows 7. The call to speex_encode_int is takes 0.0065 to complete. Because encoding is so latent the receiver incurs underruns. Here is my speex setup: ? ? unsigned val = 0; ? ? /**? ? ?* Initialize the encoder in narrow band mode.? ? ?*/? ? encoder_state_ = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));?? ? /**? ? ?* A quality of ...? ? ?*/? ? val = 7;? ??? ? /**? ? ?* Set the quality.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &val);? ??? ? /**? ? ?* A complexity of ...? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Set the complexity.? ? ?*/? ? speex_encoder_ctl(...