Frank 8 years ago
parent
commit
8e1dde32f0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      teensy3/usb_audio.cpp

+ 2
- 2
teensy3/usb_audio.cpp View File

@@ -82,9 +82,9 @@ static void copy_to_buffers(const uint32_t *src, int16_t *left, int16_t *right,
while ((src < target - 2)) {
uint32_t n = *src++;
uint32_t n1 = *src++;
*(uint32_t *)left = n & 0xFFFF | ((n1 & 0xFFFF) << 16);
*(uint32_t *)left = n1 & 0xFFFF | ((n & 0xFFFF) << 16);
left+=2;
*(uint32_t *)right = (n >> 16) | ((n1 & 0xFFFF0000)) ;
*(uint32_t *)right = (n1 >> 16) | ((n & 0xFFFF0000)) ;
right+=2;
}


Loading…
Cancel
Save