search for: zeromemory

Displaying 20 results from an estimated 22 matches for "zeromemory".

2005 Oct 09
0
Fw: problem in encoder/decoder
...speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size); int nbBytes = 0; //unsigned char *input_frame,*encodedstr; unsigned char *encodedstr; float* input_frame;//approx of frame size input_frame = new float[frame_size]; encodedstr = new unsigned char[MAX_FRAME_BYTES]; ZeroMemory(input_frame,frame_size); ZeroMemory(encodedstr,MAX_FRAME_BYTES); int pos = 0; unsigned char*result; result = new unsigned char[pMsg->m_nBufferSize]; ZeroMemory(result,pMsg->m_nBufferSize); int encoded_bytes =0; int complexity=4; int bitrate =3; speex_encoder_ctl(enc_state, S...
2007 Apr 18
3
Problems with the Speex Jitter Buffer
...nd(char* buffer, size_t maxLength) { int ret; if (320 == maxLength) { JitterBufferPacket packet; packet.data = buffer; m_Mutex.Aquire(); ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); if(ret != JITTER_BUFFER_OK) { ZeroMemory(packet.data, maxLength); } jitter_buffer_tick(m_JitterBuffer); jitter_buffer_update_delay(m_JitterBuffer, &packet, NULL); m_Mutex.Release(); } else { ZeroMemory(buffer, maxLength); } }
2007 Apr 20
2
Problems with the Speex Jitter Buffer
...{ >> JitterBufferPacket packet; >> packet.data = buffer; >> >> m_Mutex.Aquire(); >> >> ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); >> >> if(ret != JITTER_BUFFER_OK) >> { >> ZeroMemory(packet.data, maxLength); >> } >> >> jitter_buffer_tick(m_JitterBuffer); >> jitter_buffer_update_delay(m_JitterBuffer, &packet, NULL); >> m_Mutex.Release(); >> } >> else >> { >> ZeroMemory(buffer,...
2007 Apr 20
0
Problems with the Speex Jitter Buffer
...> if (320 == maxLength) > { > JitterBufferPacket packet; > packet.data = buffer; > > m_Mutex.Aquire(); > > ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); > > if(ret != JITTER_BUFFER_OK) > { > ZeroMemory(packet.data, maxLength); > } > > jitter_buffer_tick(m_JitterBuffer); > jitter_buffer_update_delay(m_JitterBuffer, &packet, NULL); > m_Mutex.Release(); > } > else > { > ZeroMemory(buffer, maxLength); > } > } >...
2007 Apr 20
0
Problems with the Speex Jitter Buffer
...t packet; >>> packet.data = buffer; >>> >>> m_Mutex.Aquire(); >>> >>> ret = jitter_buffer_get(m_JitterBuffer, &packet, 0); >>> >>> if(ret != JITTER_BUFFER_OK) >>> { >>> ZeroMemory(packet.data, maxLength); >>> } >>> >>> jitter_buffer_tick(m_JitterBuffer); >>> jitter_buffer_update_delay(m_JitterBuffer, &packet, NULL); >>> m_Mutex.Release(); >>> } >>> else >>> { &gt...
2007 Nov 04
3
WaveIn/WaveOut and Speex
...ormat: waveFormat.nChannels = 1; waveFormat.nSamplesPerSec = 8000; waveFormat.wBitsPerSample = 8; Once sound is aquired by the mic, I send it to Speex in a Char buffer. It looks something like this: Encode(char* inBuffer, DWORD bufferLength) ... float* input = new float[frameSize]; ZeroMemory(input, frameSize); ... for( ) { input[..] = inBuffer[..]; } ... speex_encode(enc_state, input, &bits); int bytesWritten = speex_bits_nbytes(&bits); speex_bits_write(&bits, encBuffer, bytesWritten); Then, my decoding routine accepts the char buffer that was encoded...
2010 Aug 23
1
[Bug] [Urgent] CreateProcess Failed internal error (1359)
...printf( "End chain\n"); return Quit(0); } int max = 2; if(arg > 0) { max = 2; } for(int i = 0; i < max; i++) { wchar_t buffer[255]; swprintf(buffer,255,L"\"%s\" %d %s%d",argv[0],arg + 1,argv[2],i); STARTUPINFOW si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); si.dwFlags = STARTF_USESTDHANDLES/*|STARTF_USESHOWWINDOW*/; //sui.wShowWindow = SW_HIDE; ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcessW( NULL, // No module name (use command line) buffer, // Co...
2007 Nov 04
2
WaveIn/WaveOut and Speex
...veFormat.wBitsPerSample = 8; > > > > Once sound is aquired by the mic, I send it to Speex in a Char buffer. > It looks something like this: > > > > Encode(char* inBuffer, DWORD bufferLength) > > ... > > float* input = new float[frameSize]; > > ZeroMemory(input, frameSize); > > ... > > for( ) > > { > > input[..] = inBuffer[..]; > > } > > ... > > speex_encode(enc_state, input, &bits); > > int bytesWritten = speex_bits_nbytes(&bits); > > speex_bits_write(&bits, encBuffer, by...
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...0 + ); return; } // Report running status when initialization is complete. ReportSvcStatus ( - SERVICE_RUNNING, - NO_ERROR, - 0 - ); + SERVICE_RUNNING, + NO_ERROR, + 0 + ); // TO_DO: Perform work until service stops. ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); - nSize=1024; + nSize=1024; #ifdef HAVE_SWPRINTF_S - swprintf_s ( - szRegistryPath, - nSize, + swprintf_s ( + szRegistryPath, + nSize, #else - snwprintf ( - szRegistryPath, - sizeof...
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...0 + ); return; } // Report running status when initialization is complete. ReportSvcStatus ( - SERVICE_RUNNING, - NO_ERROR, - 0 - ); + SERVICE_RUNNING, + NO_ERROR, + 0 + ); // TO_DO: Perform work until service stops. ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); - nSize=1024; + nSize=1024; #ifdef HAVE_SWPRINTF_S - swprintf_s ( - szRegistryPath, - nSize, + swprintf_s ( + szRegistryPath, + nSize, #else - snwprintf ( - szRegistryPath, - sizeof...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...veFormat.wBitsPerSample = 8; > > > > Once sound is aquired by the mic, I send it to Speex in a Char buffer. > It looks something like this: > > > > Encode(char* inBuffer, DWORD bufferLength) > > ... > > float* input = new float[frameSize]; > > ZeroMemory(input, frameSize); > > ... > > for( ) > > { > > input[..] = inBuffer[..]; > > } > > ... > > speex_encode(enc_state, input, &bits); > > int bytesWritten = speex_bits_nbytes(&bits); > > speex_bits_write(&bits, encBuffer, by...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...>> Once sound is aquired by the mic, I send it to Speex in a Char >> buffer. It looks something like this: >> >> >> >> Encode(char* inBuffer, DWORD bufferLength) >> >> ... >> >> float* input = new float[frameSize]; >> >> ZeroMemory(input, frameSize); >> >> ... >> >> for( ) >> >> { >> >> input[..] = inBuffer[..]; >> >> } >> >> ... >> >> speex_encode(enc_state, input, &bits); >> >> int bytesWritten = speex_bits_nbytes(...
2008 Aug 25
1
Please die if you wait "too long" RtlpWaitForCriticalSection
I'm receiving the following error in a custom app: err:ntdll:RtlpWaitForCriticalSection section 0x110048 "heap.c: main process heap section" wait timed out in thread 001a, blocked by 001c, retrying (60 sec) wine: Critical section 00110048 wait failed at address 0x7bc3ad00 (thread 001a), starting debugger... err:ntdll:RtlpWaitForCriticalSection section 0x110048 "heap.c: main
2007 Nov 05
0
Fw: RE: WaveIn/WaveOut and Speex
...>> Once sound is aquired by the mic, I send it to Speex in a Char >> buffer. It looks something like this: >> >> >> >> Encode(char* inBuffer, DWORD bufferLength) >> >> ... >> >> float* input = new float[frameSize]; >> >> ZeroMemory(input, frameSize); >> >> ... >> >> for( ) >> >> { >> >> input[..] = inBuffer[..]; >> >> } >> >> ... >> >> speex_encode(enc_state, input, &bits); >> >> int bytesWritten = speex_bits_nbytes(...
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
2006 Oct 13
0
Wine release 0.9.23
...ave a dbh oleaut32: Remove unnecessary casts. include: Add missing PSP_ constants. include: Add missing STATUS_CTX_ constants. comctl32: Fix LVM_GETITEM/LVIF_STATE so it only returns the bits it include: Add new Vista SDK constants and structures. winecfg: Remove ZeroMemory() calls and instead set iSubItem = 0 manually. taskmgr: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually. gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually. shell...
2007 Nov 05
2
WaveIn/WaveOut and Speex
...>> Once sound is aquired by the mic, I send it to Speex in a Char >> buffer. It looks something like this: >> >> >> >> Encode(char* inBuffer, DWORD bufferLength) >> >> ... >> >> float* input = new float[frameSize]; >> >> ZeroMemory(input, frameSize); >> >> ... >> >> for( ) >> >> { >> >> input[..] = inBuffer[..]; >> >> } >> >> ... >> >> speex_encode(enc_state, input, &bits); >> >> int bytesWritten = speex_bits_nbytes(...
2013 Oct 11
0
Wine release 1.7.4
...gistry settings to make Option keys send Alt rather than accessing additional characters from the keyboard layout. winemac: Implement support for Cocoa-style full-screen mode. Lauri Kentt? (1): po: Update Finnish translation. Marcus Meissner (9): shell32: Fixed wrong sizeof() in ZeroMemory (Coverity). netstat: Allocate WCHARs not CHARs (Coverity). wined3d: Fixed sizeof() to HeapAlloc (Coverity). attrib: Fixed an allocation size (Coverity). xcopy: Allocate more space for the W buffer (Coverity). view: Free the data on error exit (Coverity). msvcrt:...
2010 May 04
9
RFC: Network Plugin Architecture (NPA) for vmxnet3
Device passthrough technology allows a guest to bypass the hypervisor and drive the underlying physical device. VMware has been exploring various ways to deliver this technology to users in a manner which is easy to adopt. In this process we have prepared an architecture along with Intel - NPA (Network Plugin Architecture). NPA allows the guest to use the virtualized NIC vmxnet3 to passthrough to