search for: _tchar

Displaying 20 results from an estimated 21 matches for "_tchar".

Did you mean: tchar
2008 Aug 19
7
[LLVMdev] Please help with LLVM C++ integration
Hi Gordon, I wrote a small example, but while running I get an error("Tied to execute an unknown external function"), where I am wrong? Thanks in advance. Kirill. int some_test_func( int ){ std::cout << "!!!!" << std::endl; return 8848; } int _tmain(int argc, _TCHAR* argv[]){ Module *M = new Module("test"); ExistingModuleProvider* MP = new ExistingModuleProvider(M); ExecutionEngine* EE = ExecutionEngine::create(MP, false); std::vector<const Type *> func_args; func_args.push_back(Type::Int32Ty); FunctionType * func_type = FunctionType::g...
2008 Nov 13
2
decoded sample is completely differen from original one
...for(int i = 0; i < FRAME_SIZE; i++) { printf(" %04X", (short)output[i] & 0xFFFF); if((i + 1) % 8 == 0) { printf("\n"); } } speex_decoder_destroy(state); speex_bits_destroy(&bits); return 0; } int _tmain(int argc, _TCHAR* argv[]) { int nbBytes; char encSamples[FRAME_SIZE]; encode(&nbBytes, encSamples); decode(nbBytes, encSamples); return 0; }
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...error("Tied to > execute an unknown external function"), where I am wrong? > > Thanks in advance. > Kirill. > > int some_test_func( int ){ > std::cout << "!!!!" << std::endl; > return 8848; > } > > int _tmain(int argc, _TCHAR* argv[]){ > > Module *M = new Module("test"); > ExistingModuleProvider* MP = new ExistingModuleProvider(M); > ExecutionEngine* EE = ExecutionEngine::create(MP, false); > > std::vector<const Type *> func_args; > func_args.p...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...nt); } int some_test_func (int) { <code for function here> ... } -- John T. > Thanks in advance. > Kirill. > > int some_test_func( int ){ > std::cout << "!!!!" << std::endl; > return 8848; > } > > int _tmain(int argc, _TCHAR* argv[]){ > > Module *M = new Module("test"); > ExistingModuleProvider* MP = new ExistingModuleProvider(M); > ExecutionEngine* EE = ExecutionEngine::create(MP, false); > > std::vector<const Type *> func_args; > func_args.p...
2004 Jun 26
8
getting started
I am giving serious consideration to abandoning waveOut multimedia and the wav format, for most of the audio in my C++/MFC project. However, I've never done any programming with a codec, and I still can't see how to step into Ogg Vorbis. If I convert all my wav files to ogg, there seem to be two major issues I'm facing: 1) What exactly will I replace my waveOut functions with? 2)
2004 Jun 26
8
getting started
I am giving serious consideration to abandoning waveOut multimedia and the wav format, for most of the audio in my C++/MFC project. However, I've never done any programming with a codec, and I still can't see how to step into Ogg Vorbis. If I convert all my wav files to ogg, there seem to be two major issues I'm facing: 1) What exactly will I replace my waveOut functions with? 2)
2008 Jan 25
1
Windows share modes and Linux file locking, flock & fcntl
...============================================= Test programs: 2. Windows program (console app) to open with share mode disallowing other processes ============================================= #include <stdio.h> #include <tchar.h> #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { HANDLE handle; TCHAR* filename = NULL; if(argc < 2) { printf("No argument.\n"); return 2; } else { filename = argv[1]; } printf("Try to open file with share mode\n"); while(1) { handle...
2007 Feb 13
1
Hello Guys
...ose(fout); //delete inFile; return 0; } Here is the decoder :: ================ // consSpexDec.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "speex.h" #include <stdio.h> #define FRAME_SIZE 160 int _tmain(int argc, _TCHAR* argv[]) { char *outFile; FILE *fout; FILE *fin; /*Holds the audio that will be written to file (16 bits per sample)*/ short out[FRAME_SIZE]; /*Speex handle samples as float, so we need an array of floats*/ float output[FRAME_SIZE]; char cbits[200]; int nbBytes; /*Holds the state of the...
2008 Nov 14
0
decoded sample is completely differen from original one
...quot;, (short)output[i] & 0xFFFF); > if((i + 1) % 8 == 0) > { > printf("\n"); > } > } > > speex_decoder_destroy(state); > speex_bits_destroy(&bits); > > return 0; > } > > > int _tmain(int argc, _TCHAR* argv[]) > { > int nbBytes; > char encSamples[FRAME_SIZE]; > > encode(&nbBytes, encSamples); > decode(nbBytes, encSamples); > > return 0; > } > > > > _______________________________________________ > Speex-dev mailing list &g...
2010 Sep 06
0
encode and decode
...the API speex lib 1.2 beta 3: #include "stdafx.h" #include <iostream> #include <stdio.h> #include "speex.h" #include "speex_bits.h" using namespace std; char hex2ascii(char toconv); #define FRAME_SIZE 160 #define nbBytes 20 int main(int argc, _TCHAR* argv[]) { int mode = 3; int i=0,j=0; char ch=0; int in=0,temp=0; char out_ascii[640]={0}; float output[FRAME_SIZE];//the originals 160 words in float short out[FRAME_SIZE];//the originals 160 words char cbits[nbBytes]; void *state;//hold the state of the decoder SpeexMode speex_nb_mode;...
2010 Sep 06
0
encoding on a ds'pic and decoding on a pc
...rogram using the API speex lib 1.2 beta 3: #include "stdafx.h" #include <iostream> #include <stdio.h> #include "speex.h" #include "speex_bits.h" using namespace std; char hex2ascii(char toconv); #define FRAME_SIZE 160 #define nbBytes 20 int main(int argc, _TCHAR* argv[]) { int mode = 3; int i=0,j=0; char ch=0; int in=0,temp=0; char out_ascii[640]={0}; float output[FRAME_SIZE];//the originals 160 words in float short out[FRAME_SIZE];//the originals 160 words char cbits[nbBytes]; void *state;//hold the state of the decoder SpeexMode speex_nb_mode; SpeexBits...
2015 Feb 05
0
How to unload R.dll successfully by FreeLibrary
...-silent"}; BOOL bRet = pfnInit(_countof(szArgs), szArgs); //call second time, this function will not return //do something. pfnEnd(0); FreeLibrary(m_hRDll); //==> After this, R.dll still in memory, as I can see in Visual Studio 2012, Module window } } //testing code end int _tmain(int argc, _TCHAR* argv[]) { _simple_test(); //first time, seems fine. _simple_test(); //second time, hangs... //_start_test_OR_Cache(); //_start_test_OR_Cache(); return 0; } ???????????????????????????? [[alternative HTML version deleted]]
2006 May 11
1
Speed up?
...for 64 samples. When "ov_read_float()" is finished, I want to seek back to sample 1, and ask immediately for the next 64 samples. But when I run this small app, I get an totally high CPU load. Is there a way to it speed up? Or do I miss something? Thanx, Micha. int _tmain(int argc, _TCHAR* argv[]){ OggVorbis_File vf; errno_t err; if ( (err = fopen_s( &oggaudio, "C:\\Test\\3.ogg" , "rb")) != 0){ std::cout << "fopen problem" << std::endl; } if ( ov_open( oggaudio, &vf, NULL, 0 ) < 0 ){ std::cout << "ov_open pr...
2012 May 21
1
Problems seeking with liboggz
...#include "stdafx.h" #include <exception> #include <oggz/oggz.h> int myReadPacketCallback (OGGZ* oggz, oggz_packet* packet, long serialno, void* user_data); int myReadPageCallback (OGGZ* oggz, const ogg_page* og, long serialno, void* user_data); int _tmain(int argc, _TCHAR* argv[]) { OGGZ* pOGGZ; int ret; oggz_off_t ofs; pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO); ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback, (void*)0); ret = oggz_set_read_page (pOGGZ, -1, myReadPageCallback, (void*)0); ofs...
2007 Feb 13
0
Hello guys Please help
...fout); //delete inFile; return 0; } decoder : ====== // consSpexDec.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "speex.h" #include <stdio.h> #include <conio.h> #define FRAME_SIZE 160 int _tmain(int argc, _TCHAR* argv[]) { char *outFile; FILE *fout; FILE *fin; /*Holds the audio that will be written to file (16 bits per sample)*/ short out[FRAME_SIZE]; /*Speex handle samples as float, so we need an array of floats*/ float output[FRAME_SIZE]; char cbits[200]; int nbBytes; /*Holds the state of the...
2015 Jun 18
3
[LLVMdev] Clang 3.6.1 integration with MSVC++
Hi, This page http://clang.llvm.org/docs/MSVCCompatibility.html says clang-cl supports C ++ exceptions, but I cannot compile code with simple try{}catch{} error : cannot compile this throw expression yet What am i doing wrong? -- WBR, Arkady Shapkin aka Dragon -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
On Aug 19, 2008, at 13:36, kirill havok wrote: > I got very interested in LLVM project, and I decided to start > writing my own scripting language based on it. By studying the > documentation, I could not find how to call external function, > written in C. That is, I have a set of functions written in C/C++, I > generate code, using LLVM C++ interface, how can I call(or
2012 May 21
0
Problems seeking with liboggz
...t; #include <oggz/oggz.h> > > > > int myReadPacketCallback (OGGZ* oggz, oggz_packet* packet, long > serialno, > void* user_data); > > int myReadPageCallback (OGGZ* oggz, const ogg_page* og, long serialno, > void* user_data); > > > > int _tmain(int argc, _TCHAR* argv[]) > > { > > OGGZ* pOGGZ; > > int ret; > > oggz_off_t ofs; > > > > pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO); > > ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback, > (void*)0); > > ret = o...
2012 May 23
0
Problems seeking with liboggz
...t; #include <oggz/oggz.h> > > > > int myReadPacketCallback (OGGZ* oggz, oggz_packet* packet, long > serialno, > void* user_data); > > int myReadPageCallback (OGGZ* oggz, const ogg_page* og, long serialno, > void* user_data); > > > > int _tmain(int argc, _TCHAR* argv[]) > > { > > OGGZ* pOGGZ; > > int ret; > > oggz_off_t ofs; > > > > pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO); > > ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback, > (void*)0); > > ret = o...
2008 Aug 19
5
[LLVMdev] Please help with LLVM C++ integration
Hello, I got very interested in LLVM project, and I decided to start writing my own scripting language based on it. By studying the documentation, I could not find how to call external function, written in C. That is, I have a set of functions written in C/C++, I generate code, using LLVM C++ interface, how can I call(or register in machine in run-time) my external functions? Maybe I just missed