20#ifndef __WVRATEADJUST_H
21#define __WVRATEADJUST_H
24#include "wvtimeutils.h"
31 int sampsize, irate_n, irate_d, orate_n, orate_d;
44 WvRateAdjust(
int _sampsize,
int _irate_base,
int _orate);
48 {
return irate_n / irate_d; }
50 {
return orate_n / orate_d; }
53 void init(
int _sampsize,
int _irate_base);
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
Based on (and interchangeable with) struct timeval.