search for: lresult

Displaying 17 results from an estimated 17 matches for "lresult".

Did you mean: result
2005 Dec 09
6
New Winecfg crash
I updated my copy of WINE CVS today, and now if I click the audio tab in Winecfg, I'm getting this on my Mandrake 2006 machine. *** glibc detected *** free(): invalid pointer: 0x7c0a6cd0 *** wine: Assertion failed at address 0xffffe410 (thread 0009), starting debugger... This happens everytime I run winecfg and click the audio tab. Clicking the other tabs works fine. I've updated to
2010 Jun 20
2
DIBEngine and gdi32/user32 controls drawing loop performance
...ain, and so on. Where can I modify such a behaviour? In particular my App.exe program use many gdi32 drawing commands for drawing buttons and text input fields, so the files dlls/user32/button.c and dlls/user32/edit.c are involved. I think that the dlls/user32/winproc.c file, where the Code: LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) { return wow_handlers.edit_proc( hwnd, msg, wParam, lParam, FALSE ); } function is defined is the file where I should do some changes; this function calls Code: LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM...
2010 Mar 14
1
Segfault Problem c++ R interface (detailed)
...F.size()); unsigned int lNbrEval = 0; for(unsigned int i=0; i<ioPopulation.size(); ++i) { if(ioPopulation[i].mValid) continue; double lQuadErr = 0.0; for(unsigned int j=0; j<inX.size(); ++j) { ioContext.mPrimitiveMap["X"]->setValue(&inX[j]); double lResult = 0.0; ioPopulation[i].interpret(&lResult, ioContext); double lErr = lResult - inF[j]; lQuadErr += (lErr * lErr); } double lRMS = std::sqrt(lQuadErr / inX.size()); ioPopulation[i].mFitness = 1. / (1. + lRMS); ioPopulation[i].mValid = true; ++lNbrEval; }...
2006 Nov 01
1
Integrating speex with VideoNet application: Constant background noise
...eFormatEx.nSamplesPerSec = 8000; m_waveFormatEx.nBlockAlign =1; m_waveFormatEx.nAvgBytesPerSec = 8000; int quality =8; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); In my recording callback function LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { .... dataPtr = (char *)lpHdr ->lpData; dataSize = (int)lpHdr ->dwBytesRecorded; for(int k=0;k<FRAME_SIZE;k++) input[k] = dataPtr[k]; //input is float[FRAME_SIZE] speex_bits_reset(&bits); spe...
2004 Aug 06
2
C++ wrapper for speex
...a from the microphone. the raw PCM sample is stored in the WAVEHDR structure's member lpData, and this variable is of LPSTR type. if you have the time, can you please check on my test code below and see where i could be having problems with. (this is the handler that processes captured audio) LRESULT CRecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; int buflen = lpHdr->dwBufferLength; //160 float * buf = toFloat(lpHdr->lpData, buflen); // Encode some audio int nRet = enc.encode(buf, buflen);...
2006 Nov 02
1
Integrating speex with VideoNet application: Constantbackground noise
...plesPerSec = 8000; m_waveFormatEx.nBlockAlign =1; m_waveFormatEx.nAvgBytesPerSec = 8000; int quality =8; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); In my recording callback function LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { .... dataPtr = (char *)lpHdr ->lpData; dataSize = (int)lpHdr ->dwBytesRecorded; for(int k=0;k<FRAME_SIZE;k++) input[k] = dataPtr[k]; //input is float[FRAME_SIZE] speex_bits_reset...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...} Rf_protect(lSexpVect); // lSexpVect is a vector of lSexp. We need to read the memory directly to get // the lSexp int evalError; IntPtr lSexp = Marshal.ReadIntPtr(lSexpVect, 24); Rf_protect(lSexp); IntPtr lresult = R_tryEval(lSexp, GetCurrentEnv(), out evalError); Rf_unprotect(1); if (evalError != 0) throw new Exception("R Eval Error : " + evalError.ToString()); IntPtr bdxResult; object result; evalError = SEXP2BDX(lresult, out bdxResul...
2006 Oct 30
0
Integrating speex with VideoNet application: Constant background noise
...veFormatEx.nSamplesPerSec = 8000; m_waveFormatEx.nBlockAlign =1; m_waveFormatEx.nAvgBytesPerSec = 8000; int quality =8; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); In my recording callback function LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { .... dataPtr = (char *)lpHdr ->lpData; dataSize = (int)lpHdr ->dwBytesRecorded; for(int k=0;k<FRAME_SIZE;k++) input[k] = dataPtr[k]; //input is float[FRAME_SIZE] speex_bits_reset(&bits); spe...
2009 Aug 06
1
WH_KEYBOARD_LL vs GetKeyState
...ceiving hardware > * input, it won't get the new key state. So ResyncKeyState() will > * ensure that if the app is looping on GetKeyState(), it'll get the > * right key state. > */ Code: #include <windows.h> #include <cstdio> LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { if(nCode == HC_ACTION && wParam == WM_KEYDOWN) { KBDLLHOOKSTRUCT* key = (KBDLLHOOKSTRUCT*)lParam; GetKeyState(0); BYTE keyState[256]; GetKeyboardState(keyState); WORD cha...
2007 Oct 17
0
Using R.dll in .NET IPC
...} Rf_protect(lSexpVect); // lSexpVect is a vector of lSexp. We need to read the memory directly to get // the lSexp int evalError; IntPtr lSexp = Marshal.ReadIntPtr(lSexpVect, 24); Rf_protect(lSexp); IntPtr lresult = R_tryEval(lSexp, GetCurrentEnv(), out evalError); Rf_unprotect(1); if (evalError != 0) throw new Exception("R Eval Error : " + evalError.ToString()); IntPtr bdxResult; object result; evalError = SEXP2BDX(lresult, out bdxResul...
2004 Aug 06
1
C++ wrapper for speex
...stored in the WAVEHDR > structure's member lpData, and this variable is of > LPSTR type. > > if you have the time, can you please check on my test > code below and see where i could be having problems > with. (this is the handler that processes captured > audio) > > LRESULT CRecordSound::OnSoundData(WPARAM wParam, > LPARAM lParam) > { > LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; > > int buflen = lpHdr->dwBufferLength; //160 > float * buf = toFloat(lpHdr->lpData, buflen); > > // Encode some audio > int nRet = enc.encode(buf, bufle...
2006 Nov 05
1
Integrating speex with VideoNet application: Constantbackground noise
...= 8000; m_waveFormatEx.nBlockAlign =1; m_waveFormatEx.nAvgBytesPerSec = 8000; int quality =8; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); In my recording callback function LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { .... dataPtr = (char *)lpHdr ->lpData; dataSize = (int)lpHdr ->dwBytesRecorded; for(int k=0;k<FRAME_SIZE;k++) input[k] = dataPtr[k]; //input is float[FRAME_SIZE] sp...
2006 Dec 24
1
Integrating speex with VideoNet application: Constantbackground noise
...= 8000; m_waveFormatEx.nBlockAlign =1; m_waveFormatEx.nAvgBytesPerSec = 8000; int quality =8; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality); In my recording callback function LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { .... dataPtr = (char *)lpHdr ->lpData; dataSize = (int)lpHdr ->dwBytesRecorded; for(int k=0;k<FRAME_SIZE;k++) input[k] = dataPtr[k]; //input is float[FRAME_SIZE] sp...
2019 Jun 10
0
Wine release 4.10
...dbgeng: Build with msvcrt. msvcrt/tests: Don't use win_skip for functions that are not exported on 64-bit. msi/tests: Don't skip a 64-bit test on Wine. mf/tests: Initialize variable to avoid spurious test failure. oleacc/tests: Preserve the full 64 bits of the LRESULT value. kernel32: Simplify K32GetPerformanceInfo(). dciman32: Build with msvcrt. ddeml: Build with msvcrt. ddrawex: Build with msvcrt. devenum: Build with msvcrt. dhcpcsvc: Build with msvcrt. dhtmled.ocx: Build with msvcrt. difxapi: Build with msvcrt....
2008 Apr 18
1
Wine release 0.9.60
...eboot: Fix Win64 warnings. wineconsole: Fix Win64 warning. winefile: Fix Win64 warnings. wordpad: Fix Win64 warnings. winhelp: Fix Win64 warnings. tools: Fix font structure layout for 64-bit mode. user32: Fix Win64 warnings. user32: Use appropriate type for lresult. gdi32: Clarify which font doesn't contain 'x'. gdi32: Map glyph to Symbol range only if the font supports symbol encoding. winex11.drv: Map zero-sized windows but don't add WM decoration to them. winedump: Print names for all known EMF records. winedum...
2008 Jun 27
0
Wine release 1.1.0
...make them pass under Wine. richedit: Insertion style must NOT be cleared unless selection actually changed. richedit: Empty text should result in a scroll range of 0. Tests for this behavior. richedit: When returning position through wParam pointer, EM_POSFROMCHAR must return 0 as LRESULT. richedit: EM_POSFROMCHAR should take into account scrollbar position. With tests. richedit: Revert patch that introduced a test that fails on all platforms. richedit: Fix failing EM_GETCHARFORMAT test on all platforms. Alexander Dorofeyev (5): ddraw: Implement FPU mode fix...
2008 Apr 14
10
wine asio
Does wine asio still work with the current version of WINE? I tried installing it per the instructions and it didn't want to make.