Mercurial > mplayer.hg
comparison DOCS/tech/realcodecs/audio-codecs.txt @ 6365:2ba6600b5e0c
some more
author | arpi |
---|---|
date | Sun, 09 Jun 2002 22:02:46 +0000 |
parents | c09a890e4c8c |
children | 737a277b690c |
comparison
equal
deleted
inserted
replaced
6364:2ef20eaf8c39 | 6365:2ba6600b5e0c |
---|---|
3 | 3 |
4 | 4 |
5 audio properties | 5 audio properties |
6 | 6 |
7 00 short text/description of the format (bitrate, when to use) | 7 00 short text/description of the format (bitrate, when to use) |
8 01 avg. bytes/sec output | 8 01 bitrate (bits/s) //avg. bytes/sec output |
9 02 ulong: ? | 9 02 ulong: ? |
10 ulong: samples per second | 10 ulong: samples per second |
11 ushort: bits/sample | 11 ushort: bits/sample |
12 ushort: number of channels | 12 ushort: number of channels |
13 03 constant 2 | 13 03 same as 02 //constant 2 |
14 04 long description | 14 04 long description |
15 05 constant 1 (always?) | 15 05 constant 1 (always?) |
16 06 ulong: block align (input frame for RADecode) | 16 06 ulong: block align (input frame size for RADecode) |
17 07 string: minimum player version | 17 07 string: minimum player version |
18 08 n/a | 18 08 n/a |
19 09 n/a | 19 09 n/a |
20 0A n/a | 20 0A n/a |
21 0B n/a | 21 0B n/a |
35 functions: | 35 functions: |
36 | 36 |
37 ulong result=RAOpenCodec2(ra_main_t *raMain); | 37 ulong result=RAOpenCodec2(ra_main_t *raMain); |
38 | 38 |
39 ulong result=RAInitDecoder(ra_main_t *raMain, p2); | 39 ulong result=RAInitDecoder(ra_main_t *raMain, p2); |
40 p2=? | 40 p2 points to an array of 7 longs: |
41 | |
42 bfffefe0 22 56 00 00 10 00 02 00 64 00 00 00 3c 00 00 00 "V......d...<... | |
43 bfffeff0 58 02 00 00 10 00 00 00 f0 73 1c 08 7c f0 ff bf X........s..|... | |
44 | |
45 long 00005622=22050 (Hz) | |
46 short 0010=16 (bit) | |
47 short 0002=2 (channels) | |
48 long 00000064=100 ??? | |
49 long 0000003c=60 ??? | |
50 long 00000258=600 packet size (used for 'p3' of RADecode) | |
51 long 00000010=16 ??? | |
52 long 081c73f0= looks like a pointer | |
41 | 53 |
42 | 54 |
43 void *GetRAFlavorProperty(ra_main_t *raMain, ulong flavor, ulong property, | 55 void *GetRAFlavorProperty(ra_main_t *raMain, ulong flavor, ulong property, |
44 short *property_length_in_bytes); | 56 short *property_length_in_bytes); |
45 returns property data for a specific data | 57 returns property data for a specific data |