|
Lines 1-4
Link Here
|
| 1 |
#include <stdio.h> |
1 |
#include <stdio.h> |
|
|
2 |
#include <stdint.h> |
| 2 |
#include <stdlib.h> |
3 |
#include <stdlib.h> |
| 3 |
#include <string.h> |
4 |
#include <string.h> |
| 4 |
#include "common.h" |
5 |
#include "common.h" |
|
Lines 329-335
Link Here
|
| 329 |
} |
330 |
} |
| 330 |
} |
331 |
} |
| 331 |
if (NativeByteOrder == order_littleEndian) { |
332 |
if (NativeByteOrder == order_littleEndian) { |
| 332 |
samplerate = *(unsigned long *) (&wave_header_buffer[24]); |
333 |
samplerate = *(uint32_t *)(&wave_header_buffer[24]); |
| 333 |
} else { |
334 |
} else { |
| 334 |
samplerate = wave_header_buffer[27] + |
335 |
samplerate = wave_header_buffer[27] + |
| 335 |
(wave_header_buffer[26] << 8) + |
336 |
(wave_header_buffer[26] << 8) + |