version 1.4, 2014/03/05 20:24:16 |
version 1.5, 2014/03/05 20:31:22 |
|
|
int weight; /* dynamic range */ |
int weight; /* dynamic range */ |
int maxweight; /* max dynamic range allowed */ |
int maxweight; /* max dynamic range allowed */ |
unsigned int vol; /* volume within the vol */ |
unsigned int vol; /* volume within the vol */ |
int drop; /* to drop on next read */ |
|
struct abuf buf; /* socket side buffer */ |
struct abuf buf; /* socket side buffer */ |
int bpf; /* byte per frame */ |
int bpf; /* byte per frame */ |
int slot_cmin, slot_cmax; /* slot source chans */ |
int slot_cmin, slot_cmax; /* slot source chans */ |
|
|
void *resampbuf, *decbuf; /* tmp buffers */ |
void *resampbuf, *decbuf; /* tmp buffers */ |
} mix; |
} mix; |
struct { |
struct { |
int silence; /* to add on next write */ |
|
struct abuf buf; /* socket side buffer */ |
struct abuf buf; /* socket side buffer */ |
|
int prime; /* initial cycles to skip */ |
int bpf; /* byte per frame */ |
int bpf; /* byte per frame */ |
int slot_cmin, slot_cmax; /* slot destination chans */ |
int slot_cmin, slot_cmax; /* slot destination chans */ |
int dev_cmin, dev_cmax; /* device source chans */ |
int dev_cmin, dev_cmax; /* device source chans */ |
|
|
void *resampbuf, *encbuf; /* tmp buffers */ |
void *resampbuf, *encbuf; /* tmp buffers */ |
} sub; |
} sub; |
int xrun; /* underrun policy */ |
int xrun; /* underrun policy */ |
|
int skip; /* cycles to skip (for xrun) */ |
int dup; /* mono-to-stereo and alike */ |
int dup; /* mono-to-stereo and alike */ |
#define SLOT_BUFSZ(s) \ |
#define SLOT_BUFSZ(s) \ |
((s)->appbufsz + (s)->dev->bufsz / (s)->dev->round * (s)->round) |
((s)->appbufsz + (s)->dev->bufsz / (s)->dev->round * (s)->round) |
|
|
#define DEV_NSLOT 8 |
#define DEV_NSLOT 8 |
struct slot slot[DEV_NSLOT]; |
struct slot slot[DEV_NSLOT]; |
unsigned int serial; /* for slot allocation */ |
unsigned int serial; /* for slot allocation */ |
|
|
|
/* |
|
* current position, relative to the current cycle |
|
*/ |
|
int delta; |
|
|
/* |
/* |
* desired parameters |
* desired parameters |