search for: truct

Displaying 20 results from an estimated 24 matches for "truct".

Did you mean: struct
2006 Jun 10
1
[PATCH] bug in sample code sampledec.c
...============================================================ --- doc/sampledec.c (revision 11555) +++ doc/sampledec.c (working copy) @@ -57,7 +57,7 @@ } /*Destroy the decoder state*/ - speex_encoder_destroy(state); + speex_decoder_destroy(state); /*Destroy the bit-stream truct*/ speex_bits_destroy(&bits); fclose(fout); -- Alfred E. Heggestad <aeh@db.org> Web: http://aeh.db.org/ VoIP: <sip:alfredh@symbianos.org> Phone: +47 21 98 71 20 Mobile: +47 98 23 67 05 Skype: alfredheggestad
2004 Aug 06
2
decode in ppc 2003
...n", nbBytes); if (feof(fin)) break; /*Read the "packet" encoded by sampleenc*/ fread(cbits, 1, nbBytes, fin); /*Copy the data into the bit-stream struct*/ speex_bits_read_from(&bits, cbits, nbBytes); /*Decode the data*/ speex_decode(state, &bits, output); /*Copy from float to short (16 bits) for output*/ for (i=0;i<...
2011 Nov 16
2
Just getting noise
...state in narrowband mode*/ ? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode); ? ? ? ? ? ? ? ? ? ? ? ?/*Set the quality to 8 (15 kbps)*/ ? ? ? ? ? ? ? ? ? ? ? ?tmp=8; ? ? ? ? ? ? ? ? ? ? ? ?speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); ? ? ? ? ? ? ? ? ? ? ? ?/*Initialization of the structure that holds the bits*/ ? ? ? ? ? ? ? ? ? ? ? ?speex_bits_init(&bits); ? ? ? ? ? ? ? ? ? ? ? ?for (i=0;i<(inputSize/2);i++) ? ? ? ? ? ? ? ? ? ? ? ?{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? input[i]=in[i]; ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ?/*Flush all the bits in the struct so we can...
2004 Aug 06
1
decode in ppc 2003
...n)) > > break; > > > > /*Read the "packet" encoded by sampleenc*/ > > fread(cbits, 1, nbBytes, fin); > > /*Copy the data into the bit-stream struct*/ > > speex_bits_read_from(&bits, cbits, nbBytes); > > > > /*Decode the data*/ > > speex_decode(state, &bits, output); > > > > /*Copy from float to s...
2005 Jan 05
4
Encoding and decoding problem in speex 1.0.4
...*encode(char *buffer, int &encodeSize) { char *encodedBuffer = new char[RECBUFFER/2]; /* RECBUFFER = 2000 */ short speexShort; float speexFloat[RECBUFFER/2]; void *mEncode = speex_encoder_init(&speex_nb_mode); /*Initialization of the structure that holds the bits*/ speex_bits_init(&mBits); // Convert the audio to a short then to a float buffer int halfBufferSize = RECBUFFER/2; for (int i = 0; i < halfBufferSize; i++) { memcpy(&speexShort, &buffer[i*2], sizeof(short)); sp...
2006 Oct 12
1
Problem with encoding and decoding
.../*Create a new encoder state in narrowband mode*/ state = speex_encoder_init(&speex_nb_mode); /*Set the quality to 8 (15 kbps)*/ tmp=8; speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); //inFile = argv[1]; fin = fopen(file, "w"); /*Initialization of the structure that holds the bits*/ speex_bits_init(&bits); while (1) { /*Read a 16 bits/sample audio frame*/ read(card,in,FRAME_SIZE); //fread(in, sizeof(short), FRAME_SIZE, fin); //if (feof(fin)) // break; /*Copy the 16 bits values to float so Speex can wor...
2007 Feb 13
1
Hello Guys
...ode); /*Set the quality to 8 (15 kbps)*/ tmp=8; speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); //inFile = argv[1]; inFile = new char[10]; inFile = "ahmed.wav"; fin = fopen(inFile, "r"); fout = fopen("ahmed2.wav","w"); /*Initialization of the structure that holds the bits*/ speex_bits_init(&bits); while (1) { /*Read a 16 bits/sample audio frame*/ fread(in, sizeof(short), FRAME_SIZE, fin); if (feof(fin)) break; /*Copy the 16 bits values to float so Speex can work on them*/ for (i=0;i<FRAME_SIZE;i++) input[i]=in[i]; /*Flush all...
2011 Nov 16
2
Just getting noise
Alright noted, I changed me code so that the state is created in the constructor and destroyed in the destructor of the object. However I'm still getting the same issue although I'm sure that would have bit me sooner or later. The new code is as follows. virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, size_t& outputSize) { short *in=(s...
2003 Jan 14
1
Problems with migrating from local to roaming profiles
...move from an NT4 PDC to a Samba 2.2.7a PDC and everything has gone smoothly until this point. We made the decision to migrate to roaming profiles so our users could move around and use whichever computer they wanted to unlike before, but hit a snag in the process. I followed someone's instructions by logging into the local machine as the administrator and opening up "User Profiles" and copying the profiles to our network share on the Samba machine. I then recursively chown-ed their profiles so that they had ownership over their stuff and I believe the ACL's were set up...
2004 Aug 06
0
decode in ppc 2003
...n", nbBytes); if (feof(fin)) break; /*Read the "packet" encoded by sampleenc*/ fread(cbits, 1, nbBytes, fin); /*Copy the data into the bit-stream struct*/ speex_bits_read_from(&bits, cbits, nbBytes); /*Decode the data*/ speex_decode(state, &bits, output); /*Copy from float to short (16 bits) for output*/ for (i=0;i<...
2004 Aug 06
0
decode in ppc 2003
...n)) > > break; > > > > /*Read the "packet" encoded by sampleenc*/ > > fread(cbits, 1, nbBytes, fin); > > /*Copy the data into the bit-stream struct*/ > > speex_bits_read_from(&bits, cbits, nbBytes); > > > > /*Decode the data*/ > > speex_decode(state, &bits, output); > > > > /*Copy from float to s...
2012 Mar 07
1
Error while decoding the audio file.
I have successfully encoded a wav file in android using speex(ndk). But when i try to decode it back, the file size keep on increasing to a very large size. The recorded audio file consists of sample rate - 8000 , 16 BIT, MONO. Why the decoder gives such a large size wav file? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2004 Aug 06
1
minor suggestions
> How did you do it without the pragma? I understood that the problem was a mismatch between the the declaration and definition in for some codebooks (exc_*_tables.c). > I saw you added the pragmas to disable the float/double warnings to misc.h > though that header isn't included by the files that generate the warnings. What are the offending files then? BTW, aside from the
2011 Nov 16
0
Just getting noise
...state = speex_encoder_init(mode); > > /*Set the quality to 8 (15 kbps)*/ > tmp=8; > speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); > > /*Initialization of the structure that holds the > bits*/ > speex_bits_init(&bits); > > for (i=0;i<(inputSize/2);i++) > { > input[i]=in[i]; > } > > /...
2007 Feb 13
0
Hello guys Please help
...e); /*Set the quality to 8 (15 kbps)*/ tmp=8; speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); //inFile = argv[1]; inFile = new char[10]; inFile = "snouto.wav"; fin = fopen(inFile, "r"); fout = fopen("snouto2.wav","w"); /*Initialization of the structure that holds the bits*/ speex_bits_init(&bits); while (1) { /*Read a 16 bits/sample audio frame*/ fread(in, sizeof(short), FRAME_SIZE, fin); if (feof(fin)) break; if(ferror(fin)) { std::cout << "There was an error snouto " <<std::endl; getch(); } /*Copy the 1...
2011 Nov 17
1
Just getting noise
...e isn't > data in the jitter buffer and once enough frames have been lost, it starts > buffering data (and so playing silence). > > On Nov 16, 2011, at 15:25 , Christopher Schaefer wrote: > >> Alright noted, I changed me code so that the state is created in the >> constructor and destroyed in the destructor of the object. However I'm >> still getting the same issue although I'm sure that would have bit me >> sooner or later. >> The new code is as follows. >> >> ? ? ? ? ? ? ? ?virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size...
2011 Nov 16
0
Just getting noise
...st gets incremented if there isn't data in the jitter buffer and once enough frames have been lost, it starts buffering data (and so playing silence). On Nov 16, 2011, at 15:25 , Christopher Schaefer wrote: > Alright noted, I changed me code so that the state is created in the > constructor and destroyed in the destructor of the object. However I'm > still getting the same issue although I'm sure that would have bit me > sooner or later. > The new code is as follows. > > virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, > size_t& ou...
2018 Jan 24
2
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...vm/trunk/test/CodeGen/ARM/memcpy-ldm-stm.ll > llvm/trunk/test/CodeGen/ARM/memcpy-no-inline.ll > llvm/trunk/test/CodeGen/ARM/memfunc.ll > llvm/trunk/test/CodeGen/ARM/memset-inline.ll > llvm/trunk/test/CodeGen/ARM/stack-protector-bmovpcb_call.ll > llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll > llvm/trunk/test/CodeGen/ARM/tailcall-mem-intrinsics.ll > llvm/trunk/test/CodeGen/AVR/std-ldd-immediate-overflow.ll > llvm/trunk/test/CodeGen/BPF/byval.ll > llvm/trunk/test/CodeGen/BPF/ex1.ll > llvm/trunk/test/CodeGen/BPF/fi_ri.ll > llvm/trunk/tes...
2007 Apr 24
2
just noise
...speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); //inFile = argv[1]; fin = fopen(inFile, "r"); if( !fin ) return( -1 ); // couldn't find file fread(header, sizeof(char), 10000, fin); // get wav header fout = fopen(tempFile, "w"); /*Initialization of the structure that holds the bits*/ speex_bits_init(&bits); while (1) { /*Read a 16 bits/sample audio frame*/ fread(in, sizeof(short), FRAME_SIZE, fin); if (feof(fin)) break; /*Copy the 16 bits values to float so Speex can work on them*/ for (i=0;i<FRAME_SIZE;i++) input[i]=in[i]; /*F...
2018 Jan 25
2
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...n/ARM/memcpy-ldm-stm.ll >> llvm/trunk/test/CodeGen/ARM/memcpy-no-inline.ll >> llvm/trunk/test/CodeGen/ARM/memfunc.ll >> llvm/trunk/test/CodeGen/ARM/memset-inline.ll >> llvm/trunk/test/CodeGen/ARM/stack-protector-bmovpcb_call.ll >> llvm/trunk/test/CodeGen/ARM/struct-byval-frame-index.ll >> llvm/trunk/test/CodeGen/ARM/tailcall-mem-intrinsics.ll >> llvm/trunk/test/CodeGen/AVR/std-ldd-immediate-overflow.ll >> llvm/trunk/test/CodeGen/BPF/byval.ll >> llvm/trunk/test/CodeGen/BPF/ex1.ll >> llvm/trunk/test/CodeGen/BPF/fi_ri.ll &...