A Python UPnP Media Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
324 B

  1. #include <sys/types.h>
  2. #define INTERLEAVEFUN(nbits) void \
  3. interleave ## nbits (int nchan, int chanmap[], int chansamps, int32_t *data[], int ## nbits ## _t *out) \
  4. { \
  5. int i; \
  6. \
  7. for (i = 0; i < chansamps * nchan; i++) { \
  8. out[i] = (int ## nbits ## _t)data[chanmap[i % nchan]][i / nchan]; \
  9. } \
  10. }
  11. INTERLEAVEFUN(16)