search for: buffer2

Displaying 8 results from an estimated 8 matches for "buffer2".

Did you mean: buffer
2005 Jun 23
1
Speex and DS
...it-packing struct*/ speex_bits_destroy(&bitsenc); /* decoding */ FILE* fin = fopen("_ee.raw","r"); //get the file char cbitsdec[200]; short out[FRAME_SIZE]; float output[FRAME_SIZE]; dec_state = speex_decoder_init(&speex_nb_mode); speex_bits_init(&bitsdec); char* buffer2 = new char[size]; // the output buffer char* pbuffer2 = buffer2; // pointer to the output buffer while (1) { //Read the size encoded by sampleenc, this part will likely be //different in your application fread(&nbBytesdec, sizeof(int), 1, fin); if (feof(fin)) break; //Read the &qu...
2005 Jun 23
2
Speex and DS
Hello everyone I've a following problem with the speex codec. I'm developing application that is supposed to read sounds from the microphone with DirectSoundCapture. Unfortunately when I want to compress and decompress the sound buffer from DirectSound I only have jitter. Maybe you have some code samples how to compress standard DS buffers: LPDIRECTSOUND8 lpDS = NULL;
2006 Mar 31
2
__Very__ Low Bandwidth
...t that things are getting thrown away by the kernel? Could I munge the packets to turn up the TTL or something similar? Many thanks for some excellent tools. Matthew Pearson #!/bin/bash CLIENT1=192.168.1.190/32 CLIENT2=192.168.1.191/32 OPER=add; DEV=eth0 RATE=3kbit PEAKRATE=3kbit BUFFER1=10kb BUFFER2=10kb echo -e "Attach Egress policy..." tc qdisc $OPER dev $DEV root handle 1:0 htb default 15 tc class $OPER dev $DEV parent 1:0 classid 1:1 htb rate 240kbit tc class $OPER dev $DEV parent 1:1 classid 1:2 htb rate 240kbit ceil 240kbit tc class $OPER dev $DEV parent 1:1 classid 1:3 htb r...
1997 Sep 26
3
Forwarded mail....
...argc, char **argv) { struct sockaddr_in sin_me , sin_dst; struct nmbhdr *nmb,*nmb2; struct iphdr *ipz; struct typez *typz; struct hostent *hent; int socket_client,sr,num,i=1,bha,timeout=0,try=0,GO=0; int longueur=sizeof(struct sockaddr_in); char *data; char *dataz; char buffer[1024]; char buffer2[1024]; char namezz[1024]; char name[64]="CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\0"; char c; if(argc <2) { printf("usage: ADMnmbname <ip of the victim>\n"); exit (0); } socket_client=socket(AF_INET,SOCK_DGRAM,17); sr=socket(AF_INET,SOCK_RAW,17)...
2005 Feb 22
1
Win CE playback error
...har encode[200]; int nbBytes = speex_bits_write(&bits, encode, 200); speex_encoder_destroy(enc_state); speex_bits_reset(&bits); speex_bits_read_from(&bits, encode, nbBytes); short TempDecode[160]; speex_decode_int(dec_state, &bits, TempDecode); //Declare an unsigned char buffer2 // Convert from short back to unsigned char for playback unsigned char buffer2[160]; for (i=0; i<160; i++); { buffer2[i] = TempDecode[i]; } speex_bits_destroy(&bits); speex_decoder_destroy(dec_state);
2011 Oct 31
1
[LLVMdev] Runtime optimization using llvm
Hello, I am getting to know how the Runtime Optimization feature of LLVM works and how I can use it. I want to know how I could print the results of any analysis and transformation pass. Say, I have a program written in c and I ran the edge-profiling pass onto it. Now I want to see the result. How could I do it? Also if I happen to change one of the passes inside folder
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...e; > + ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); > + ASSERT_EQ(File1Size, 8192ULL); > + > + // TEST 2: Verify abort case. > + SmallString<128> File2(TestDirectory); > + File2.append("/file2"); > + { > + OwningPtr<FileOutputBuffer> Buffer2; > + ASSERT_NO_ERROR(FileOutputBuffer::create(File2, 8192, Buffer2)); > + // Fill buffer with special header. > + memcpy(Buffer2->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); > + // Do *not* commit buffer. > + } > + // Verify file does not exist (becau...
2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
I now have an implementation of FileOutputBuffer (OutputBuffer was already taken). The patch supports the functionality listed below and I've tested that it works for lld. -------------- next part -------------- A non-text attachment was scrubbed... Name: FileOutputBuffer.patch Type: application/octet-stream Size: 25308 bytes Desc: not available URL: