search for: inlength

Displaying 3 results from an estimated 3 matches for "inlength".

Did you mean: nlength
2007 Mar 22
1
[SPAM] RE: Encoding audio sampled at 44.1 khz?
...4 int main(int argc, char* argv[]) { // First of all, declare the resampler state SpeexResamplerState* State = speex_resampler_init(2, 44100, 22050, 5); short in[ReadSize]; short out[ReadSize]; FILE* fin = fopen(argv[1], "rb"); FILE* fout = fopen(argv[2], "wb"); unsigned InLength = ReadSize, OutLength = ReadSize;; speex_resampler_skip_zeros(State); while (1) { // Read in the short data fread(&in, sizeof(short), ReadSize, fin); if (feof(fin)) break; speex_resampler_process_interleaved_int(State, in, &InLength, out, &OutLength); fwrite(&out, sizeof(shor...
2002 Jul 20
0
opensc smartcard support does not work
...ASN1_OCTET_STRING digest; + unsigned char *p,*s = NULL; r = sc_prkey_op_init(rsa, &key_obj); ! if (r) { ! error("sc_prkey_op_init failed: %s", ! sc_strerror(r)); ! return 0; ! } ! ! debug3("inlength %d\n", m_len); ! sig.algor= &algor; ! sig.algor->algorithm=OBJ_nid2obj(type); ! ! parameter.type=V_ASN1_NULL; ! parameter.value.ptr=NULL; ! sig.algor->parameter= &parameter; ! ! sig.digest= &digest; ! sig.digest->data=m; !...
2007 Mar 21
2
Encoding audio sampled at 44.1 khz?
Hi everyone, I recently began using libspeex 1.2 Beta 1 on Windows using MS Visual C++. I have gotten a decoder and an encoder to work fine from the excellent sample code posted at the website. But I face a problem. I am working on using Speex in a program to play and create audio books encoded using Speex (currently testing it only; for these tests, I do not use Ogg to save the encoded