Home | History | Annotate | Download | only in src

Lines Matching refs:samples

50  * - fills in *length with the number of samples converted
51 * - allocates memory for *samples
61 char *cb, short **samples, int *length, int doSwap);
64 char *cb, short **samples, int *length, int doSwap);
66 char *cb, short **samples, int *length, int doSwap);
68 char *cb, short **samples, int *length, int doSwap);
219 char *cb, short **samples, int *length, int doSwap)
235 *samples = MALLOC(*length * sizeof(short), MTAG);
238 memcpy(*samples, cb, *length*sizeof(short));
240 for (i = 0;i < *length;i++) swapShort(*samples + i);
244 for (i = 0;i < *length;i++)(*samples)[i] = (short)((unsigned)(cb[i]) - 128) << 8;
252 char *cb, short **samples, int *length, int doSwap)
268 *samples = MALLOC(*length * sizeof(short), MTAG);
270 (*samples)[i] = (short) ulaw2linear(cb[i]);
277 char *cb, short **samples, int *length, int doSwap)
293 samples = MALLOC(*length * sizeof(short), MTAG);
294 for (i = 0;i < *length;i++)(*samples)[i] = alaw2linear(cb[i]);
557 short **samples, int *rate, int *length, SwiRiffStruct *swichunk)
630 rc = (WaveCodecs[i].func)(wf, &chunk, cb, samples, length, doSwap);
657 if (ifrom > 0) memmove(*samples, (*samples) + ifrom, (*length)*sizeof(short));