Displaying 20 results from an estimated 21 matches for "_tmain".
Did you mean:
_main
2010 Jan 19
1
Linker Error when compiling Speex decoder
...ng error during linking. How do I resolve it.
I am compiling using Visual Studio 2008
Thanks
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>MicSpeexDec.obj : error LNK2019: unresolved external symbol __imp__fclose referenced in function "int __cdecl _tmain(int,char * * const)" (?_tmain@@YAHHQAPAD at Z)
1>MicSpeexDec.obj : error LNK2019: unresolved external symbol __imp__fwrite referenced in function "int __cdecl _tmain(int,char * * const)" (?_tmain@@YAHHQAPAD at Z)
1>MicSpeexDec.obj : error LNK2019: unresolved external symbol _...
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...
2008 Nov 13
2
decoded sample is completely differen from original one
...its, output);
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
...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;
>...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...some_test_func(int);
}
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;
>...
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)
2013 Nov 18
7
RHSrvAny: Fix failure on Windows 2003
The newly rebuilt RHSrvAny worked on Windows XP, Windows 2003 R2, and Windows
Vista+, but segfaulted on Windows 2003. After much investigation, the issue
seems to have been with inconsistent use of Unicode.
This series fixes compilation on Microsoft Visual C++ 2010 (the most recent
version which runs on Windows 2003), fixes all compiler warnings, and enabled
warnings during the build. The
2008 Jan 25
1
Windows share modes and Linux file locking, flock & fcntl
...printable = yes
=============================================
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)...
2007 Feb 13
1
Hello Guys
...fclose(fin);
fclose(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...
2008 Nov 14
0
decoded sample is completely differen from original one
...intf(" %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;
> }
>
>
>
> _______________________________________________
> Speex-de...
2015 Feb 05
0
How to unload R.dll successfully by FreeLibrary
...ne", "--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?
...;m
asking always 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 <<...
2012 May 21
1
Problems seeking with liboggz
...ole application.
#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...
2007 Feb 13
0
Hello guys Please help
...se(fin);
fclose(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...
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
...ption>
>
> #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);
>...
2012 May 23
0
Problems seeking with liboggz
...ption>
>
> #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);
>...
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