search for: readsize

Displaying 7 results from an estimated 7 matches for "readsize".

Did you mean: read_size
2007 Mar 22
1
[SPAM] RE: Encoding audio sampled at 44.1 khz?
...replies. Best regards, Peter. -- Code -- /* Compiler: Visual Studio 2005 Express OS: Windows XP Pro SP 2 Program used to play back the output file: GoldWave */ #include <speex/speex_resampler.h> #include <stdio.h> //#pragma comment(lib, "libspeex_test.lib") #define ReadSize 16384 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"); unsi...
2014 Aug 14
1
Encoder example for 24-bit files
...24bps file: diff --git a/examples/c/encode/file/main.c b/examples/c/encode/file/main.c index e3bdea8..b1cf374 100644 --- a/examples/c/encode/file/main.c +++ b/examples/c/encode/file/main.c @@ -40,8 +40,10 @@ static void progress_callback(const FLAC__StreamEncoder *encoder, FLAC__uint64 b #define READSIZE 1024 +#define BPS 24 /* Bits per sample */ + static unsigned total_samples = 0; /* can use a 32-bit number due to WAVE size limitations */ -static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/ * 2/*channels*/]; /* we read the WAVE data into here */ +static FLAC__byte buffer[READSI...
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
2014 Aug 14
6
Encoder example for 24-bit files
...nding of the format, or anything else that you can notice where I'm complete lost, I'll appreciate your help. Here's the diff: Index: main.c =================================================================== --- main.c (revision 1) +++ main.c (working copy) @@ -39,7 +39,7 @@ #define READSIZE 1024 static unsigned total_samples = 0; /* can use a 32-bit number due to WAVE size limitations */ -static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/ * 2/*channels*/]; /* we read the WAVE data into here */ +static FLAC__byte buffer[READSIZE/*samples*/ * 3/*bytes_per_sample*/ *...
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...unsigned char defFileName[16] = {"encAUDIO.flac"}; > > static void progress_callback(const FLAC__StreamEncoder *encoder, > FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned > frames_written, unsigned total_frames_estimate, void *client_data); > > #define READSIZE 1024 > > static unsigned total_samples = 0; /* can use a 32-bit number due to WAVE > size limitations */ > static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/ * > 2/*channels*/]; /* we read the WAVE data into here */ > static FLAC__int32 pcm[READSIZE/*samples*/ *...
2002 Jul 17
0
user password expiration patch (Samba 2.2.4/2.2.5 PDC with LDAP)
...efault. */ Globals.min_wins_ttl = 60 * 60 * 6; /* 6 hours default. */ Globals.machine_password_timeout = 60 * 60 * 24 * 7; /* 7 days default. */ + Globals.user_password_expiration = 60 * 60 * 24 * 21; /* 21 days default. */ Globals.change_notify_timeout = 60; /* 1 minute default. */ Globals.ReadSize = 16 * 1024; Globals.lm_announce = 2; /* = Auto: send only if LM clients found */ @@ -1673,6 +1677,7 @@ FN_GLOBAL_INTEGER(lp_lm_announce, &Globals.lm_announce) FN_GLOBAL_INTEGER(lp_lm_interval, &Globals.lm_interval) FN_GLOBAL_INTEGER(lp_machine_password_timeout, &Globals.machine_p...
2006 Sep 26
15
RE: Individual passwords for guest VNC servers ?
> Thanks all point about security, I''ll do as follows. > I thought that the point was the following two. > > > 1. Storage place of encrypted password > Should I store it in /etc/xen/passwd ? > Or, should I wait for DB of Xen that will be released in > the future? The xend life cycle management patches were posted by Alistair a couple of months back.