Displaying 6 results from an estimated 6 matches for "cbuffer".
Did you mean:
buffer
2013 Jun 03
0
libao on Debian
...ror in ao_close()\n") ;
exit(EXIT_FAILURE) ;
}
ao_shutdown() ;
return 0 ;
}
char *Sine(int sr, int nchan, double dur, int *nBytes)
{
double f1, f2 ;
double db, A ;
double ph1, ph2, phInc1, phInc2 ;
int frames, i ;
short *sbuffer ;
char *cbuffer ;
f1 = 1000 ; // frequency in Hertz
f2 = 1.5 * f1 ; // perfect fifth higher
ph1 = ph2 = 0 ;
phInc1 = ( 2 * M_PI * f1 ) / sr ; // phase increments
phInc2 = ( 2 * M_PI * f2 ) / sr ;
db = 90 ; // amplitude in decibels
A =...
2006 Jun 15
0
[PATCH 2/2] Runtime configuration of HTB''s HYSTERESIS option (userspace)
...om leaf at once {use r2q}\n"
"\nTC HTB version %d.%d\n",HTB_TC_VER>>16,HTB_TC_VER&0xffff
);
@@ -104,6 +105,7 @@ static int htb_parse_class_opt(struct qd
{
int ok=0;
struct tc_htb_opt opt;
+ struct tc_htb_hopt hopt;
__u32 rtab[256],ctab[256];
unsigned buffer=0,cbuffer=0;
int cell_log=-1,ccell_log = -1;
@@ -114,6 +116,7 @@ static int htb_parse_class_opt(struct qd
struct rtattr *tail;
memset(&opt, 0, sizeof(opt)); mtu = 1600; /* eth packet len */
+ memset(&hopt, 0, sizeof(hopt));
while (argc > 0) {
if (matches(*argv, "prio") ==...
2006 Jun 15
0
[PATCH 1/2] Runtime configuration of HTB''s HYSTERESIS option (kernel)
...s_mode */
int warned; /* only one warning about non work conserving .. */
@@ -622,20 +622,14 @@ static __inline__ enum htb_cmode
htb_class_mode(struct htb_class *cl,long *diff)
{
long toks;
+ long hysteresis =
+ (cl->nohyst || cl->cmode == HTB_CANT_SEND) ? 0 : -cl->cbuffer;
- if ((toks = (cl->ctokens + *diff)) < (
-#if HTB_HYSTERESIS
- cl->cmode != HTB_CANT_SEND ? -cl->cbuffer :
-#endif
- 0)) {
+ if ((toks = (cl->ctokens + *diff)) < hysteresis) {
*diff = -toks;
return HTB_CANT_SEND;
}
- if ((toks = (cl->...
2006 Aug 02
10
[PATCH 0/6] htb: cleanup
The HTB scheduler code is a mess, this patch set does some basic
house cleaning. The first four should cause no code change, but the
last two need more testing.
--
Stephen Hemminger <shemminger@osdl.org>
"And in the Packet there writ down that doome"
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
2002 Aug 19
1
small error in Ogg Vorbis FAQ
"Ogg Vorbis uses the Ogg bistream format, and the correct
extension is .ogg"
-- http://www.xiph.org/ogg/vorbis/faq.html
I'm guessing it should read 'bitstream'.
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org'
2006 Mar 02
33
Patch to allow for the ATM "cell tax"
...per-packet size overhead used in rate computations\n"
+ " atm include atm cell tax in rate computations\n"
" ceil definite upper class rate (no borrows) {rate}\n"
" cburst burst but for ceil {computed}\n"
@@ -416,7 +417,7 @@
unsigned buffer=0,cbuffer=0;
int cell_log=-1,ccell_log = -1;
unsigned mtu, mpu;
- unsigned char mpu8 = 0, overhead = 0;
+ unsigned char mpu8 = 0, overhead = 0, atm=0;
struct rtattr *tail;
memset(&opt, 0, sizeof(opt)); mtu = 1600; /* eth packet len */
@@ -440,9 +441,11 @@
}
} else if (matches(*argv, &quo...