mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
s/afile_xxxmap/dec_xxxmap
This commit is contained in:
parent
1341ff77a4
commit
2e1306cbeb
@ -38,7 +38,7 @@ int aparams_ctltovol[128] = {
|
|||||||
26008, 27029, 28090, 29193, 30339, 31530, 32768
|
26008, 27029, 28090, 29193, 30339, 31530, 32768
|
||||||
};
|
};
|
||||||
|
|
||||||
short afile_ulawmap[256] = {
|
short dec_ulawmap[256] = {
|
||||||
-32124, -31100, -30076, -29052, -28028, -27004, -25980, -24956,
|
-32124, -31100, -30076, -29052, -28028, -27004, -25980, -24956,
|
||||||
-23932, -22908, -21884, -20860, -19836, -18812, -17788, -16764,
|
-23932, -22908, -21884, -20860, -19836, -18812, -17788, -16764,
|
||||||
-15996, -15484, -14972, -14460, -13948, -13436, -12924, -12412,
|
-15996, -15484, -14972, -14460, -13948, -13436, -12924, -12412,
|
||||||
@ -73,7 +73,7 @@ short afile_ulawmap[256] = {
|
|||||||
56, 48, 40, 32, 24, 16, 8, 0
|
56, 48, 40, 32, 24, 16, 8, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
short afile_alawmap[256] = {
|
short dec_alawmap[256] = {
|
||||||
-5504, -5248, -6016, -5760, -4480, -4224, -4992, -4736,
|
-5504, -5248, -6016, -5760, -4480, -4224, -4992, -4736,
|
||||||
-7552, -7296, -8064, -7808, -6528, -6272, -7040, -6784,
|
-7552, -7296, -8064, -7808, -6528, -6272, -7040, -6784,
|
||||||
-2752, -2624, -3008, -2880, -2240, -2112, -2496, -2368,
|
-2752, -2624, -3008, -2880, -2240, -2112, -2496, -2368,
|
||||||
@ -677,7 +677,7 @@ dec_do_ulaw(struct conv *p, unsigned char *in, unsigned char *out, int todo, int
|
|||||||
log_puts(" frames\n");
|
log_puts(" frames\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
map = is_alaw ? afile_alawmap : afile_ulawmap;
|
map = is_alaw ? dec_alawmap : dec_ulawmap;
|
||||||
idata = in;
|
idata = in;
|
||||||
odata = (adata_t *)out;
|
odata = (adata_t *)out;
|
||||||
for (f = todo * p->nch; f > 0; f--)
|
for (f = todo * p->nch; f > 0; f--)
|
||||||
|
Loading…
Reference in New Issue
Block a user