home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-11-13 | 2.6 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: VIS.H
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 56 49 53 2e 48 00 | 00 00 00 00 00 00 00 00 |..VIS.H.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 07 85 00 | 00 01 9a b0 91 00 9c b0 |........|........|
|00000060| 91 00 9c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 90 1c 00 00 |........|........|
|00000080| 2f 2f 20 6e 6f 74 65 73 | 3a 0d 2f 2f 20 61 6e 79 |// notes|:.// any|
|00000090| 20 77 69 6e 64 6f 77 20 | 74 68 61 74 20 72 65 6d | window |that rem|
|000000a0| 61 69 6e 73 20 69 6e 20 | 66 6f 72 65 67 72 6f 75 |ains in |foregrou|
|000000b0| 6e 64 20 73 68 6f 75 6c | 64 20 6f 70 74 69 6d 61 |nd shoul|d optima|
|000000c0| 6c 6c 79 20 70 61 73 73 | 20 0d 2f 2f 20 6b 65 79 |lly pass| .// key|
|000000d0| 73 74 72 6f 6b 65 73 20 | 74 6f 20 74 68 65 20 70 |strokes |to the p|
|000000e0| 61 72 65 6e 74 20 28 77 | 69 6e 61 6d 70 27 73 29 |arent (w|inamp's)|
|000000f0| 20 77 69 6e 64 6f 77 2c | 20 73 6f 20 74 68 61 74 | window,| so that|
|00000100| 20 74 68 65 20 75 73 65 | 72 0d 2f 2f 20 63 61 6e | the use|r.// can|
|00000110| 20 73 74 69 6c 6c 20 63 | 6f 6e 74 72 6f 6c 20 69 | still c|ontrol i|
|00000120| 74 2e 20 75 6e 6c 65 73 | 73 20 65 73 63 61 70 65 |t. unles|s escape|
|00000130| 20 69 73 20 68 69 74 2c | 20 6f 72 20 73 6f 6d 65 | is hit,| or some|
|00000140| 20 6f 70 74 69 6f 6e 20 | 0d 2f 2f 20 6b 65 79 20 | option |.// key |
|00000150| 73 70 65 63 69 66 69 63 | 20 74 6f 20 74 68 65 20 |specific| to the |
|00000160| 76 69 73 20 69 73 20 68 | 69 74 2e 20 41 73 20 66 |vis is h|it. As f|
|00000170| 6f 72 20 73 74 6f 72 69 | 6e 67 20 63 6f 6e 66 69 |or stori|ng confi|
|00000180| 67 75 72 61 74 69 6f 6e | 2c 0d 2f 2f 20 43 6f 6e |guration|,.// Con|
|00000190| 66 69 67 75 72 61 74 69 | 6f 6e 20 64 61 74 61 20 |figurati|on data |
|000001a0| 73 68 6f 75 6c 64 20 62 | 65 20 73 74 6f 72 65 64 |should b|e stored|
|000001b0| 20 69 6e 20 3c 64 6c 6c | 20 64 69 72 65 63 74 6f | in <dll| directo|
|000001c0| 72 79 3e 5c 70 6c 75 67 | 69 6e 2e 69 6e 69 0d 2f |ry>\plug|in.ini./|
|000001d0| 2f 20 4c 6f 6f 6b 20 61 | 74 20 74 68 65 20 65 78 |/ Look a|t the ex|
|000001e0| 61 6d 70 6c 65 20 70 6c | 75 67 69 6e 20 66 6f 72 |ample pl|ugin for|
|000001f0| 20 61 20 66 72 61 6d 65 | 77 6f 72 6b 2e 0d 0d 2f | a frame|work.../|
|00000200| 2f 20 69 6e 74 73 20 61 | 72 65 20 33 32 20 62 69 |/ ints a|re 32 bi|
|00000210| 74 73 2c 20 61 6e 64 20 | 73 74 72 75 63 74 75 72 |ts, and |structur|
|00000220| 65 20 6d 65 6d 62 65 72 | 73 20 61 72 65 20 61 6c |e member|s are al|
|00000230| 69 67 6e 65 64 20 6f 6e | 20 74 68 65 20 64 65 66 |igned on| the def|
|00000240| 61 75 6c 74 20 38 20 62 | 79 74 65 20 62 6f 75 6e |ault 8 b|yte boun|
|00000250| 64 61 72 69 65 73 0d 2f | 2f 20 74 65 73 74 65 64 |daries./|/ tested|
|00000260| 20 77 69 74 68 20 56 43 | 2b 2b 20 34 2e 32 20 61 | with VC|++ 4.2 a|
|00000270| 6e 64 20 35 2e 30 0d 0d | 0d 74 79 70 65 64 65 66 |nd 5.0..|.typedef|
|00000280| 20 73 74 72 75 63 74 20 | 77 69 6e 61 6d 70 56 69 | struct |winampVi|
|00000290| 73 4d 6f 64 75 6c 65 20 | 7b 0d 20 20 63 68 61 72 |sModule |{. char|
|000002a0| 20 2a 64 65 73 63 72 69 | 70 74 69 6f 6e 3b 20 2f | *descri|ption; /|
|000002b0| 2f 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |/ descri|ption of|
|000002c0| 20 6d 6f 64 75 6c 65 0d | 20 20 48 57 4e 44 20 68 | module.| HWND h|
|000002d0| 77 6e 64 50 61 72 65 6e | 74 3b 20 20 20 2f 2f 20 |wndParen|t; // |
|000002e0| 70 61 72 65 6e 74 20 77 | 69 6e 64 6f 77 20 28 66 |parent w|indow (f|
|000002f0| 69 6c 6c 65 64 20 69 6e | 20 62 79 20 63 61 6c 6c |illed in| by call|
|00000300| 69 6e 67 20 61 70 70 29 | 0d 20 20 48 49 4e 53 54 |ing app)|. HINST|
|00000310| 41 4e 43 45 20 68 44 6c | 6c 49 6e 73 74 61 6e 63 |ANCE hDl|lInstanc|
|00000320| 65 3b 20 2f 2f 20 69 6e | 73 74 61 6e 63 65 20 68 |e; // in|stance h|
|00000330| 61 6e 64 6c 65 20 74 6f | 20 74 68 69 73 20 44 4c |andle to| this DL|
|00000340| 4c 20 28 66 69 6c 6c 65 | 64 20 69 6e 20 62 79 20 |L (fille|d in by |
|00000350| 63 61 6c 6c 69 6e 67 20 | 61 70 70 29 0d 20 20 69 |calling |app). i|
|00000360| 6e 74 20 73 52 61 74 65 | 3b 09 09 20 2f 2f 20 73 |nt sRate|;.. // s|
|00000370| 61 6d 70 6c 65 20 72 61 | 74 65 20 28 66 69 6c 6c |ample ra|te (fill|
|00000380| 65 64 20 69 6e 20 62 79 | 20 63 61 6c 6c 69 6e 67 |ed in by| calling|
|00000390| 20 61 70 70 29 0d 20 20 | 69 6e 74 20 6e 43 68 3b | app). |int nCh;|
|000003a0| 09 09 09 20 2f 2f 20 6e | 75 6d 62 65 72 20 6f 66 |... // n|umber of|
|000003b0| 20 63 68 61 6e 6e 65 6c | 73 20 28 66 69 6c 6c 65 | channel|s (fille|
|000003c0| 64 20 69 6e 2e 2e 2e 29 | 0d 20 20 69 6e 74 20 6c |d in...)|. int l|
|000003d0| 61 74 65 6e 63 79 4d 73 | 3b 20 20 20 20 20 2f 2f |atencyMs|; //|
|000003e0| 20 6c 61 74 65 6e 63 79 | 20 66 72 6f 6d 20 63 61 | latency| from ca|
|000003f0| 6c 6c 20 6f 66 20 52 65 | 6e 64 65 72 46 72 61 6d |ll of Re|nderFram|
|00000400| 65 20 74 6f 20 61 63 74 | 75 61 6c 20 64 72 61 77 |e to act|ual draw|
|00000410| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ing. | |
|00000420| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 28 63 61 6c | | // (cal|
|00000430| 6c 69 6e 67 20 61 70 70 | 20 6c 6f 6f 6b 73 20 61 |ling app| looks a|
|00000440| 74 20 74 68 69 73 20 76 | 61 6c 75 65 20 77 68 65 |t this v|alue whe|
|00000450| 6e 20 67 65 74 74 69 6e | 67 20 64 61 74 61 29 0d |n gettin|g data).|
|00000460| 20 20 69 6e 74 20 64 65 | 6c 61 79 4d 73 3b 20 20 | int de|layMs; |
|00000470| 20 20 20 20 20 2f 2f 20 | 64 65 6c 61 79 20 62 65 | // |delay be|
|00000480| 74 77 65 65 6e 20 63 61 | 6c 6c 73 20 69 6e 20 6d |tween ca|lls in m|
|00000490| 73 0d 0d 20 20 2f 2f 20 | 74 68 65 20 64 61 74 61 |s.. // |the data|
|000004a0| 20 69 73 20 66 69 6c 6c | 65 64 20 69 6e 20 61 63 | is fill|ed in ac|
|000004b0| 63 6f 72 64 69 6e 67 20 | 74 6f 20 74 68 65 20 72 |cording |to the r|
|000004c0| 65 73 70 65 63 74 69 76 | 65 20 4e 63 68 20 65 6e |espectiv|e Nch en|
|000004d0| 74 72 79 0d 20 20 69 6e | 74 20 73 70 65 63 74 72 |try. in|t spectr|
|000004e0| 75 6d 4e 63 68 3b 0d 20 | 20 69 6e 74 20 77 61 76 |umNch;. | int wav|
|000004f0| 65 66 6f 72 6d 4e 63 68 | 3b 0d 20 20 75 6e 73 69 |eformNch|;. unsi|
|00000500| 67 6e 65 64 20 63 68 61 | 72 20 73 70 65 63 74 72 |gned cha|r spectr|
|00000510| 75 6d 44 61 74 61 5b 32 | 5d 5b 35 37 36 5d 3b 0d |umData[2|][576];.|
|00000520| 20 20 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 | unsign|ed char |
|00000530| 77 61 76 65 66 6f 72 6d | 44 61 74 61 5b 32 5d 5b |waveform|Data[2][|
|00000540| 35 37 36 5d 3b 0d 0d 20 | 20 76 6f 69 64 20 28 2a |576];.. | void (*|
|00000550| 43 6f 6e 66 69 67 29 28 | 73 74 72 75 63 74 20 77 |Config)(|struct w|
|00000560| 69 6e 61 6d 70 56 69 73 | 4d 6f 64 75 6c 65 20 2a |inampVis|Module *|
|00000570| 74 68 69 73 5f 6d 6f 64 | 29 3b 20 20 2f 2f 20 63 |this_mod|); // c|
|00000580| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 64 69 61 |onfigura|tion dia|
|00000590| 6c 6f 67 0d 20 20 69 6e | 74 20 28 2a 49 6e 69 74 |log. in|t (*Init|
|000005a0| 29 28 73 74 72 75 63 74 | 20 77 69 6e 61 6d 70 56 |)(struct| winampV|
|000005b0| 69 73 4d 6f 64 75 6c 65 | 20 2a 74 68 69 73 5f 6d |isModule| *this_m|
|000005c0| 6f 64 29 3b 20 20 20 20 | 20 2f 2f 20 30 20 6f 6e |od); | // 0 on|
|000005d0| 20 73 75 63 63 65 73 73 | 2c 20 63 72 65 61 74 65 | success|, create|
|000005e0| 73 20 77 69 6e 64 6f 77 | 2c 20 65 74 63 0d 20 20 |s window|, etc. |
|000005f0| 69 6e 74 20 28 2a 52 65 | 6e 64 65 72 29 28 73 74 |int (*Re|nder)(st|
|00000600| 72 75 63 74 20 77 69 6e | 61 6d 70 56 69 73 4d 6f |ruct win|ampVisMo|
|00000610| 64 75 6c 65 20 2a 74 68 | 69 73 5f 6d 6f 64 29 3b |dule *th|is_mod);|
|00000620| 20 20 20 2f 2f 20 72 65 | 74 75 72 6e 73 20 30 20 | // re|turns 0 |
|00000630| 69 66 20 73 75 63 63 65 | 73 73 66 75 6c 2c 20 31 |if succe|ssful, 1|
|00000640| 20 69 66 20 76 69 73 20 | 73 68 6f 75 6c 64 20 65 | if vis |should e|
|00000650| 6e 64 0d 20 20 76 6f 69 | 64 20 28 2a 51 75 69 74 |nd. voi|d (*Quit|
|00000660| 29 28 73 74 72 75 63 74 | 20 77 69 6e 61 6d 70 56 |)(struct| winampV|
|00000670| 69 73 4d 6f 64 75 6c 65 | 20 2a 74 68 69 73 5f 6d |isModule| *this_m|
|00000680| 6f 64 29 3b 20 20 20 20 | 2f 2f 20 63 61 6c 6c 20 |od); |// call |
|00000690| 77 68 65 6e 20 64 6f 6e | 65 0d 0d 20 20 76 6f 69 |when don|e.. voi|
|000006a0| 64 20 2a 75 73 65 72 44 | 61 74 61 3b 20 2f 2f 20 |d *userD|ata; // |
|000006b0| 75 73 65 72 20 64 61 74 | 61 2c 20 6f 70 74 69 6f |user dat|a, optio|
|000006c0| 6e 61 6c 0d 7d 20 77 69 | 6e 61 6d 70 56 69 73 4d |nal.} wi|nampVisM|
|000006d0| 6f 64 75 6c 65 3b 0d 0d | 74 79 70 65 64 65 66 20 |odule;..|typedef |
|000006e0| 73 74 72 75 63 74 20 7b | 0d 20 20 69 6e 74 20 76 |struct {|. int v|
|000006f0| 65 72 73 69 6f 6e 3b 20 | 20 20 20 20 20 20 2f 2f |ersion; | //|
|00000700| 20 56 49 44 5f 48 44 52 | 56 45 52 0d 20 20 63 68 | VID_HDR|VER. ch|
|00000710| 61 72 20 2a 64 65 73 63 | 72 69 70 74 69 6f 6e 3b |ar *desc|ription;|
|00000720| 20 2f 2f 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 | // desc|ription |
|00000730| 6f 66 20 6c 69 62 72 61 | 72 79 0d 20 20 77 69 6e |of libra|ry. win|
|00000740| 61 6d 70 56 69 73 4d 6f | 64 75 6c 65 2a 20 28 2a |ampVisMo|dule* (*|
|00000750| 67 65 74 4d 6f 64 75 6c | 65 29 28 69 6e 74 29 3b |getModul|e)(int);|
|00000760| 0d 7d 20 77 69 6e 61 6d | 70 56 69 73 48 65 61 64 |.} winam|pVisHead|
|00000770| 65 72 3b 0d 0d 2f 2f 20 | 65 78 70 6f 72 74 65 64 |er;..// |exported|
|00000780| 20 73 79 6d 62 6f 6c 73 | 0d 74 79 70 65 64 65 66 | symbols|.typedef|
|00000790| 20 77 69 6e 61 6d 70 56 | 69 73 48 65 61 64 65 72 | winampV|isHeader|
|000007a0| 2a 20 28 2a 77 69 6e 61 | 6d 70 56 69 73 47 65 74 |* (*wina|mpVisGet|
|000007b0| 48 65 61 64 65 72 54 79 | 70 65 29 28 29 3b 0d 0d |HeaderTy|pe)();..|
|000007c0| 2f 2f 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 63 75 |// versi|on of cu|
|000007d0| 72 72 65 6e 74 20 6d 6f | 64 75 6c 65 20 28 30 78 |rrent mo|dule (0x|
|000007e0| 31 30 31 20 3d 3d 20 31 | 2e 30 31 29 0d 23 64 65 |101 == 1|.01).#de|
|000007f0| 66 69 6e 65 20 56 49 53 | 5f 48 44 52 56 45 52 20 |fine VIS|_HDRVER |
|00000800| 30 78 31 30 31 00 00 00 | 00 00 00 00 00 00 00 00 |0x101...|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000890| 00 ff 2b 2b 9f 2b 2b 2b | 2b 2b 2b 2b 2b ff 00 00 |..++.+++|+++++...|
|000008a0| 00 ff 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b ff 00 00 |..++++++|+++++...|
|000008b0| 00 ff ff ff ff ff ff ff | ff ff ff ff ff ff 00 00 |........|........|
|000008c0| 0f ff ff ff ff ff 00 00 | 0f 0c 0c 0c 0c fc f0 00 |........|........|
|000008d0| 0f c0 c0 c0 c0 fc cf 00 | 0f 06 66 0c 0c ff ff 00 |........|..f.....|
|000008e0| 0f c6 66 c0 c0 cc cf 00 | 0f 06 66 0c 0c 0c 0f 00 |..f.....|..f.....|
|000008f0| 0f c0 c0 c0 22 c0 cf 00 | 0f 0c 0c 02 02 2c 0f 00 |...."...|.....,..|
|00000900| 0f c0 c0 c2 22 20 cf 00 | 0f 0c 8c 0c 22 0c 0f 00 |...." ..|...."...|
|00000910| 0f c0 88 c0 c0 c0 cf 00 | 0f 08 88 0c 0c 0c 0f 00 |........|........|
|00000920| 0f c8 88 80 c0 c0 cf 00 | 0f 0c 8c 0c 0c 0c 0f 00 |........|........|
|00000930| 0f c0 c0 c0 c0 c0 cf 00 | 0f ff ff ff ff ff ff 00 |........|........|
|00000940| 00 00 00 00 00 04 00 00 | 00 0a 00 00 00 11 00 00 |........|........|
|00000950| 00 20 80 00 00 40 40 00 | 00 80 20 00 01 00 10 07 |. ...@@.|.. .....|
|00000960| 02 00 3f ff 04 00 40 07 | 08 00 80 07 10 01 00 07 |..?...@.|........|
|00000970| 20 02 20 07 40 04 50 0f | c0 04 88 17 e0 05 08 27 | . .@.P.|.......'|
|00000980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 03 | 00 04 00 28 00 0a 01 c2 |........|...(....|
|000009b0| 02 80 00 28 00 0a 01 c2 | 02 80 b0 90 ba 4c 00 00 |...(....|.....L..|
|000009c0| 02 4f 00 00 02 59 00 00 | 01 7f 01 00 00 00 00 04 |.O...Y..|........|
|000009d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000009e0| 00 00 00 46 05 c6 f0 e0 | 16 0a 00 00 00 1c 00 46 |...F....|.......F|
|000009f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000a00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000a10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+