Statistics
| Branch: | Tag: | Revision:

hlrc / server / msg / soundchunk.msg @ c6fcfba9

History | View | Annotate | Download (473 Bytes)

1 0c286af0 Simon Schulz
#sound chunk
2
3
#sample type constants:
4
uint8 SAMPLE_S8 = 0
5
uint8 SAMPLE_U8 = 1
6
uint8 SAMPLE_S16 = 2
7
uint8 SAMPLE_U16 = 4
8
uint8 SAMPLE_S24 = 8
9
uint8 SAMPLE_U24 = 16
10
11
#endianess constants:
12
uint8 ENDIAN_LITTLE = 0
13
uint8 ENDIAN_BIG    = 1
14
15
#raw audio data
16
uint8[] data
17
18
#sample count
19
uint32 samplecount
20
21
#channel count
22
uint32 channels
23
24
#sampling rate in hz
25
uint32 rate
26
27
#sample type (SAMPLE_S8, ...)
28
uint8 sample_type
29
30
#endianess (ENDIAN_LITTLE or ENDIAN_BIG)
31
uint8 endianess
32