home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1999-07-13 | 13.0 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: MacAMP_Visual.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jul 13 22:09:01 1999, modified Tue Jul 13 22:09:01 1999, creator 'CWIE', type ASCII, 12575 bytes "MacAMP_Visual.h" , at 0x319f 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 4d 61 63 41 4d 50 | 5f 56 69 73 75 61 6c 2e |..MacAMP|_Visual.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|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 31 1f 00 | 00 01 9a b3 b1 a1 bd b3 |.....1..|........|
|00000060| b1 a1 bd 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 dc 41 00 00 |........|.....A..|
|00000080| 2f 2a 0d 09 56 69 73 75 | 61 6c 20 50 6c 75 67 2d |/*..Visu|al Plug-|
|00000090| 69 6e 20 41 50 49 0d 09 | a9 31 39 39 39 2c 20 40 |in API..|.1999, @|
|000000a0| 73 6f 66 74 0d 09 0d 09 | 44 65 73 63 72 69 70 74 |soft....|Descript|
|000000b0| 69 6f 6e 3a 09 54 68 65 | 20 70 6c 75 67 69 6e 20 |ion:.The| plugin |
|000000c0| 41 50 49 20 66 6f 72 20 | 4d 61 63 41 4d 50 20 76 |API for |MacAMP v|
|000000d0| 69 73 75 61 6c 20 70 6c | 75 67 69 6e 73 20 28 77 |isual pl|ugins (w|
|000000e0| 69 6e 64 6f 77 65 64 0d | 09 09 09 09 09 61 6e 64 |indowed.|.....and|
|000000f0| 20 66 75 6c 6c 2d 73 63 | 72 65 65 6e 29 2e 0d 09 | full-sc|reen)...|
|00000100| 56 65 72 73 69 6f 6e 3a | 09 09 31 2e 32 0d 09 52 |Version:|..1.2..R|
|00000110| 65 6c 65 61 73 65 64 3a | 09 09 37 2f 31 31 2f 39 |eleased:|..7/11/9|
|00000120| 39 0d 09 43 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |9..Compa|tibility|
|00000130| 3a 09 4d 61 63 41 4d 50 | 20 31 2e 30 0d 09 56 65 |:.MacAMP| 1.0..Ve|
|00000140| 72 73 69 6f 6e 20 68 69 | 73 74 6f 72 79 3a 0d 09 |rsion hi|story:..|
|00000150| 0d 09 20 44 61 74 65 09 | 57 68 6f 09 09 43 68 61 |.. Date.|Who..Cha|
|00000160| 6e 67 65 73 0d 09 2d 2d | 2d 2d 2d 2d 2b 2d 2d 2d |nges..--|----+---|
|00000170| 2d 2d 2d 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |---+----|--------|
|00000180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 09 30 37 31 31 |--------|--..0711|
|000001b0| 39 39 09 53 4b 41 09 09 | 43 68 61 6e 67 65 64 20 |99.SKA..|Changed |
|000001c0| 61 20 66 65 77 20 63 61 | 6c 6c 62 61 63 6b 73 2c |a few ca|llbacks,|
|000001d0| 20 63 6f 6d 6d 65 6e 74 | 65 64 20 74 68 65 20 66 | comment|ed the f|
|000001e0| 69 6c 65 20 61 20 6c 69 | 74 74 6c 65 0d 09 09 09 |ile a li|ttle....|
|000001f0| 09 09 62 65 74 74 65 72 | 2e 0d 09 30 37 30 38 39 |..better|...07089|
|00000200| 39 09 53 4b 41 09 09 41 | 64 64 65 64 20 74 77 6f |9.SKA..A|dded two|
|00000210| 20 6e 65 77 20 68 6f 6f | 6b 73 20 66 6f 72 20 70 | new hoo|ks for p|
|00000220| 6c 75 67 69 6e 73 2e 20 | 0d 09 09 09 09 09 41 6c |lugins. |......Al|
|00000230| 6c 20 76 69 73 75 61 6c | 20 70 6c 75 67 69 6e 73 |l visual| plugins|
|00000240| 20 68 61 73 20 74 6f 20 | 62 65 20 72 65 63 6f 6d | has to |be recom|
|00000250| 70 69 6c 65 64 2e 0d 09 | 30 36 31 39 39 39 09 53 |piled...|061999.S|
|00000260| 4b 41 09 09 41 64 64 65 | 64 20 47 65 74 53 6f 75 |KA..Adde|d GetSou|
|00000270| 6e 64 42 75 66 66 65 72 | 20 68 6f 6f 6b 20 66 6f |ndBuffer| hook fo|
|00000280| 72 20 64 69 72 65 63 74 | 20 61 63 63 65 73 73 20 |r direct| access |
|00000290| 74 6f 20 73 6f 75 6e 64 | 0d 09 09 09 09 09 64 61 |to sound|......da|
|000002a0| 74 61 0d 09 30 35 30 32 | 39 39 09 53 4b 41 09 09 |ta..0502|99.SKA..|
|000002b0| 49 6e 69 74 69 61 6c 20 | 72 65 6c 65 61 73 65 0d |Initial |release.|
|000002c0| 09 30 34 33 30 39 39 09 | 53 4b 41 09 09 53 74 61 |.043099.|SKA..Sta|
|000002d0| 72 74 65 64 20 74 68 65 | 20 77 6f 72 6b 0d 0d 09 |rted the| work...|
|000002e0| 53 4b 41 20 3d 20 53 6c | 61 76 61 20 4b 61 72 70 |SKA = Sl|ava Karp|
|000002f0| 65 6e 6b 6f 0d 2a 2f 0d | 0d 23 70 72 61 67 6d 61 |enko.*/.|.#pragma|
|00000300| 20 6f 6e 63 65 0d 0d 23 | 69 6e 63 6c 75 64 65 20 | once..#|include |
|00000310| 3c 45 72 72 6f 72 73 2e | 68 3e 0d 23 69 6e 63 6c |<Errors.|h>.#incl|
|00000320| 75 64 65 20 3c 46 69 6c | 65 73 2e 68 3e 0d 23 69 |ude <Fil|es.h>.#i|
|00000330| 6e 63 6c 75 64 65 20 3c | 4d 61 63 54 79 70 65 73 |nclude <|MacTypes|
|00000340| 2e 68 3e 0d 0d 23 69 66 | 64 65 66 20 5f 5f 63 70 |.h>..#if|def __cp|
|00000350| 6c 75 73 70 6c 75 73 0d | 65 78 74 65 72 6e 20 22 |lusplus.|extern "|
|00000360| 43 22 20 7b 0d 23 65 6e | 64 69 66 0d 0d 0d 2f 2a |C" {.#en|dif.../*|
|00000370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 09 09 09 09 |********|***.....|
|000003b0| 09 45 4e 55 4d 53 20 41 | 4e 44 20 43 4f 4e 53 54 |.ENUMS A|ND CONST|
|000003c0| 41 4e 54 53 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ANTS.***|********|
|000003d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000400| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 56 50 5f 41 50 |*/.#defi|ne VP_AP|
|00000410| 49 5f 56 45 52 53 49 4f | 4e 09 09 09 09 30 78 30 |I_VERSIO|N....0x0|
|00000420| 31 32 30 0d 23 64 65 66 | 69 6e 65 20 70 6c 75 67 |120.#def|ine plug|
|00000430| 56 69 73 75 61 6c 09 09 | 09 09 09 27 56 49 53 21 |Visual..|...'VIS!|
|00000440| 27 0d 0d 2f 2f 20 46 6c | 61 67 73 20 66 6f 72 20 |'..// Fl|ags for |
|00000450| 56 69 73 49 6e 66 6f 42 | 6c 6f 63 6b 2e 66 6c 61 |VisInfoB|lock.fla|
|00000460| 67 73 0d 65 6e 75 6d 20 | 7b 0d 09 76 70 46 6c 61 |gs.enum |{..vpFla|
|00000470| 67 53 74 61 72 74 4f 6e | 4c 61 75 6e 63 68 09 09 |gStartOn|Launch..|
|00000480| 09 3d 20 30 78 30 30 30 | 31 2c 09 09 2f 2f 20 54 |.= 0x000|1,..// T|
|00000490| 68 65 20 70 6c 75 67 69 | 6e 20 77 69 6c 6c 20 62 |he plugi|n will b|
|000004a0| 65 20 73 74 61 72 74 65 | 64 20 6f 6e 20 61 70 70 |e starte|d on app|
|000004b0| 6c 69 63 61 74 69 6f 6e | 20 6c 61 75 6e 63 68 20 |lication| launch |
|000004c0| 74 69 6d 65 0d 09 76 70 | 46 6c 61 67 48 69 64 65 |time..vp|FlagHide|
|000004d0| 49 6e 4d 65 6e 75 09 09 | 09 3d 20 30 78 30 30 30 |InMenu..|.= 0x000|
|000004e0| 32 2c 09 09 2f 2f 20 54 | 68 65 20 70 6c 75 67 69 |2,..// T|he plugi|
|000004f0| 6e 20 77 69 6c 6c 20 6e | 6f 74 20 62 65 20 73 68 |n will n|ot be sh|
|00000500| 6f 77 6e 20 69 6e 20 6d | 65 6e 75 0d 09 0d 09 76 |own in m|enu....v|
|00000510| 70 46 6c 61 67 53 74 61 | 72 74 4f 6e 4c 61 75 6e |pFlagSta|rtOnLaun|
|00000520| 63 68 4d 61 73 6b 09 09 | 3d 20 28 31 4c 20 3c 3c |chMask..|= (1L <<|
|00000530| 20 30 29 2c 0d 09 76 70 | 46 6c 61 67 48 69 64 65 | 0),..vp|FlagHide|
|00000540| 49 6e 4d 65 6e 75 4d 61 | 73 6b 09 09 3d 20 28 31 |InMenuMa|sk..= (1|
|00000550| 4c 20 3c 3c 20 31 29 0d | 7d 3b 0d 0d 2f 2f 20 75 |L << 1).|};..// u|
|00000560| 73 65 66 75 6c 20 6d 61 | 63 72 6f 73 20 74 6f 20 |seful ma|cros to |
|00000570| 71 75 69 63 6b 6c 79 20 | 73 65 74 20 68 65 61 64 |quickly |set head|
|00000580| 65 72 73 2f 66 6f 6f 74 | 65 72 73 20 6f 66 20 56 |ers/foot|ers of V|
|00000590| 50 49 6e 66 6f 42 6c 6f | 63 6b 0d 23 64 65 66 69 |PInfoBlo|ck.#defi|
|000005a0| 6e 65 20 56 50 5f 49 4e | 46 4f 42 4c 4f 43 4b 5f |ne VP_IN|FOBLOCK_|
|000005b0| 48 45 41 44 45 52 28 61 | 2c 62 29 20 56 50 5f 41 |HEADER(a|,b) VP_A|
|000005c0| 50 49 5f 56 45 52 53 49 | 4f 4e 2c 20 70 6c 75 67 |PI_VERSI|ON, plug|
|000005d0| 56 69 73 75 61 6c 2c 20 | 61 2c 20 62 2c 20 6e 69 |Visual, |a, b, ni|
|000005e0| 6c 0d 23 64 65 66 69 6e | 65 20 56 50 5f 49 4e 46 |l.#defin|e VP_INF|
|000005f0| 4f 42 4c 4f 43 4b 5f 48 | 45 41 44 45 52 5f 57 49 |OBLOCK_H|EADER_WI|
|00000600| 54 48 5f 46 4c 41 47 53 | 28 61 2c 62 2c 63 29 20 |TH_FLAGS|(a,b,c) |
|00000610| 56 50 5f 41 50 49 5f 56 | 45 52 53 49 4f 4e 2c 20 |VP_API_V|ERSION, |
|00000620| 70 6c 75 67 56 69 73 75 | 61 6c 2c 20 61 2c 20 62 |plugVisu|al, a, b|
|00000630| 2c 20 63 0d 23 64 65 66 | 69 6e 65 20 56 50 5f 49 |, c.#def|ine VP_I|
|00000640| 4e 46 4f 42 4c 4f 43 4b | 5f 46 4f 4f 54 45 52 09 |NFOBLOCK|_FOOTER.|
|00000650| 6e 69 6c 2c 6e 69 6c 2c | 6e 69 6c 2c 6e 69 6c 2c |nil,nil,|nil,nil,|
|00000660| 6e 69 6c 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |nil../**|********|
|00000670| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000680| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000690| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006a0| 2a 2a 0d 09 09 09 09 09 | 45 52 52 4f 52 53 20 26 |**......|ERRORS &|
|000006b0| 20 52 45 54 55 52 4e 20 | 56 41 4c 55 45 53 0d 2a | RETURN |VALUES.*|
|000006c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0d 65 6e 75 |********|***/.enu|
|00000700| 6d 20 7b 0d 09 2f 2f 20 | 50 6c 75 67 69 6e 20 72 |m {..// |Plugin r|
|00000710| 65 74 75 72 6e 20 63 6f | 64 65 73 0d 09 65 72 72 |eturn co|des..err|
|00000720| 56 69 73 4e 6f 45 72 72 | 09 09 09 3d 20 6e 6f 45 |VisNoErr|...= noE|
|00000730| 72 72 2c 0d 09 65 72 72 | 56 69 73 54 65 72 6d 69 |rr,..err|VisTermi|
|00000740| 6e 61 74 65 09 3d 20 36 | 36 36 2c 09 09 09 2f 2f |nate.= 6|66,...//|
|00000750| 20 74 65 72 6d 69 6e 61 | 74 65 20 74 68 65 20 70 | termina|te the p|
|00000760| 6c 75 67 69 6e 0d 09 65 | 72 72 56 69 73 4e 6f 4d |lugin..e|rrVisNoM|
|00000770| 65 6d 6f 72 79 2c 09 09 | 09 09 09 2f 2f 20 74 65 |emory,..|...// te|
|00000780| 72 6d 69 6e 61 74 65 20 | 74 68 65 20 70 6c 75 67 |rminate |the plug|
|00000790| 69 6e 20 61 6e 64 20 64 | 69 73 70 6c 61 79 20 6e |in and d|isplay n|
|000007a0| 6f 20 6d 65 6d 6f 72 79 | 20 61 6c 65 72 74 0d 09 |o memory| alert..|
|000007b0| 0d 09 65 72 72 56 69 73 | 43 75 73 74 6f 6d 09 09 |..errVis|Custom..|
|000007c0| 09 09 09 2f 2f 20 4d 61 | 63 41 4d 50 20 77 69 6c |...// Ma|cAMP wil|
|000007d0| 6c 20 63 61 6c 6c 20 56 | 69 73 45 72 72 6f 72 20 |l call V|isError |
|000007e0| 66 75 6e 63 74 69 6f 6e | 20 61 6e 64 20 74 65 72 |function| and ter|
|000007f0| 6d 69 6e 61 74 65 20 79 | 6f 75 72 0d 09 09 09 09 |minate y|our.....|
|00000800| 09 09 09 09 09 2f 2f 20 | 20 70 6c 75 67 69 6e 20 |.....// | plugin |
|00000810| 69 66 20 79 6f 75 20 72 | 65 71 75 65 73 74 20 74 |if you r|equest t|
|00000820| 6f 2e 0d 7d 3b 0d 0d 2f | 2a 2a 2a 2a 2a 2a 2a 2a |o..};../|********|
|00000830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000840| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000850| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000860| 2a 2a 2a 2a 0d 09 09 09 | 09 09 46 55 4e 43 54 49 |****....|..FUNCTI|
|00000870| 4f 4e 20 44 45 46 49 4e | 49 54 49 4f 4e 53 0d 2a |ON DEFIN|ITIONS.*|
|00000880| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0d 2f 2f 20 |********|***/.// |
|000008c0| 43 61 6c 6c 65 64 20 77 | 68 65 6e 20 74 68 65 20 |Called w|hen the |
|000008d0| 70 6c 75 67 69 6e 20 69 | 73 20 69 6e 69 74 69 61 |plugin i|s initia|
|000008e0| 6c 69 7a 65 64 2e 20 59 | 6f 75 20 67 65 74 20 74 |lized. Y|ou get t|
|000008f0| 68 65 20 46 53 53 70 65 | 63 20 74 6f 20 74 68 65 |he FSSpe|c to the|
|00000900| 20 70 6c 75 67 69 6e 20 | 66 69 6c 65 0d 2f 2f 20 | plugin |file.// |
|00000910| 28 66 6f 72 20 6f 70 65 | 6e 69 6e 67 20 72 65 73 |(for ope|ning res|
|00000920| 66 6f 72 6b 20 69 66 20 | 79 6f 75 20 6e 65 65 64 |fork if |you need|
|00000930| 20 74 6f 29 2e 20 59 6f | 75 20 73 68 61 6c 6c 20 | to). Yo|u shall |
|00000940| 72 65 74 75 72 6e 20 57 | 69 6e 64 6f 77 50 74 72 |return W|indowPtr|
|00000950| 20 74 6f 20 79 6f 75 72 | 20 70 6c 75 67 69 6e 20 | to your| plugin |
|00000960| 28 69 66 20 79 6f 75 20 | 63 72 65 61 74 65 20 61 |(if you |create a|
|00000970| 6e 79 29 2e 0d 65 78 74 | 65 72 6e 20 4f 53 53 74 |ny)..ext|ern OSSt|
|00000980| 61 74 75 73 09 56 69 73 | 49 6e 69 74 69 61 6c 69 |atus.Vis|Initiali|
|00000990| 7a 65 28 46 53 53 70 65 | 63 50 74 72 20 69 6e 50 |ze(FSSpe|cPtr inP|
|000009a0| 6c 75 67 69 6e 2c 20 57 | 69 6e 64 6f 77 50 74 72 |lugin, W|indowPtr|
|000009b0| 2a 20 6f 75 74 57 69 6e | 64 6f 77 2c 20 55 49 6e |* outWin|dow, UIn|
|000009c0| 74 33 32 2a 20 69 6f 52 | 65 66 63 6f 6e 29 3b 0d |t32* ioR|efcon);.|
|000009d0| 0d 2f 2f 20 43 61 6c 6c | 65 64 20 6f 6e 20 74 65 |.// Call|ed on te|
|000009e0| 72 6d 69 6e 61 74 69 6f | 6e 2e 20 50 6c 75 67 69 |rminatio|n. Plugi|
|000009f0| 6e 20 73 68 6f 75 6c 64 | 20 64 69 73 70 6f 73 65 |n should| dispose|
|00000a00| 20 61 6c 6c 20 62 75 66 | 66 65 72 73 2f 73 74 72 | all buf|fers/str|
|00000a10| 75 63 74 75 72 65 73 20 | 69 74 20 68 61 64 20 61 |uctures |it had a|
|00000a20| 6e 64 20 70 72 65 70 61 | 72 65 0d 2f 2f 20 74 68 |nd prepa|re.// th|
|00000a30| 65 20 6d 69 6e 64 20 66 | 6f 72 20 65 74 68 65 72 |e mind f|or ether|
|00000a40| 6e 69 74 79 2e 20 44 69 | 73 70 6f 73 69 6e 67 20 |nity. Di|sposing |
|00000a50| 77 69 6e 64 6f 77 20 69 | 73 20 79 6f 75 72 20 70 |window i|s your p|
|00000a60| 6c 75 67 69 6e 27 73 20 | 72 65 73 70 6f 6e 73 69 |lugin's |responsi|
|00000a70| 62 69 6c 69 74 79 20 61 | 73 20 77 65 6c 6c 2e 0d |bility a|s well..|
|00000a80| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 09 |extern O|SStatus.|
|00000a90| 56 69 73 54 65 72 6d 69 | 6e 61 74 65 28 57 69 6e |VisTermi|nate(Win|
|00000aa0| 64 6f 77 50 74 72 20 69 | 6e 57 69 6e 64 6f 77 2c |dowPtr i|nWindow,|
|00000ab0| 20 55 49 6e 74 33 32 2a | 20 69 6f 52 65 66 63 6f | UInt32*| ioRefco|
|00000ac0| 6e 29 3b 0d 0d 2f 2f 20 | 43 61 6c 6c 65 64 20 77 |n);..// |Called w|
|00000ad0| 68 65 6e 65 76 65 72 20 | 4d 61 63 41 4d 50 20 68 |henever |MacAMP h|
|00000ae0| 61 73 20 73 6f 6d 65 20 | 66 72 65 65 20 74 69 6d |as some |free tim|
|00000af0| 65 2e 20 49 66 20 79 6f | 75 27 72 65 20 61 20 66 |e. If yo|u're a f|
|00000b00| 75 6c 6c 2d 73 63 72 65 | 65 6e 20 70 6c 75 67 69 |ull-scre|en plugi|
|00000b10| 6e 2c 20 79 6f 75 20 67 | 65 74 20 74 68 69 73 20 |n, you g|et this |
|00000b20| 65 76 65 6e 74 20 6d 6f | 72 65 20 6f 66 74 65 6e |event mo|re often|
|00000b30| 2e 0d 65 78 74 65 72 6e | 20 4f 53 53 74 61 74 75 |..extern| OSStatu|
|00000b40| 73 09 56 69 73 49 64 6c | 65 28 57 69 6e 64 6f 77 |s.VisIdl|e(Window|
|00000b50| 50 74 72 20 69 6e 57 69 | 6e 64 6f 77 2c 20 55 49 |Ptr inWi|ndow, UI|
|00000b60| 6e 74 33 32 2a 20 69 6f | 52 65 66 63 6f 6e 29 3b |nt32* io|Refcon);|
|00000b70| 0d 0d 2f 2f 20 44 69 73 | 70 6c 61 79 20 41 62 6f |..// Dis|play Abo|
|00000b80| 75 74 20 62 6f 78 20 6f | 72 20 64 6f 20 73 6f 6d |ut box o|r do som|
|00000b90| 65 20 61 62 6f 75 74 20 | 67 72 61 70 68 69 63 20 |e about |graphic |
|00000ba0| 69 6e 20 74 68 65 20 70 | 6c 75 67 69 6e 20 77 69 |in the p|lugin wi|
|00000bb0| 6e 64 6f 77 2e 0d 65 78 | 74 65 72 6e 20 4f 53 53 |ndow..ex|tern OSS|
|00000bc0| 74 61 74 75 73 09 56 69 | 73 41 62 6f 75 74 28 57 |tatus.Vi|sAbout(W|
|00000bd0| 69 6e 64 6f 77 50 74 72 | 20 69 6e 57 69 6e 64 6f |indowPtr| inWindo|
|00000be0| 77 2c 20 55 49 6e 74 33 | 32 2a 20 69 6f 52 65 66 |w, UInt3|2* ioRef|
|00000bf0| 63 6f 6e 29 3b 0d 0d 2f | 2f 20 44 72 61 77 20 77 |con);../|/ Draw w|
|00000c00| 68 61 74 65 76 65 72 20 | 79 6f 75 20 77 61 6e 74 |hatever |you want|
|00000c10| 20 74 6f 2e 20 43 61 6c | 6c 65 64 20 70 65 72 69 | to. Cal|led peri|
|00000c20| 6f 64 69 63 61 6c 6c 79 | 20 74 6f 20 65 6e 73 75 |odically| to ensu|
|00000c30| 72 65 20 73 74 65 61 64 | 79 20 65 66 66 65 63 74 |re stead|y effect|
|00000c40| 20 66 6c 6f 77 2e 0d 65 | 78 74 65 72 6e 20 4f 53 | flow..e|xtern OS|
|00000c50| 53 74 61 74 75 73 20 56 | 69 73 44 72 61 77 28 57 |Status V|isDraw(W|
|00000c60| 69 6e 64 6f 77 50 74 72 | 20 69 6e 57 69 6e 64 6f |indowPtr| inWindo|
|00000c70| 77 2c 20 55 49 6e 74 33 | 32 2a 20 69 6f 52 65 66 |w, UInt3|2* ioRef|
|00000c80| 63 6f 6e 29 3b 0d 0d 2f | 2f 20 54 68 69 73 20 66 |con);../|/ This f|
|00000c90| 75 6e 63 74 69 6f 6e 20 | 69 73 20 63 61 6c 6c 65 |unction |is calle|
|00000ca0| 64 20 77 68 65 6e 20 75 | 73 65 72 20 63 6c 69 63 |d when u|ser clic|
|00000cb0| 6b 73 20 69 6e 20 77 69 | 6e 64 6f 77 20 74 68 61 |ks in wi|ndow tha|
|00000cc0| 74 20 69 73 20 63 6f 6e | 74 72 6f 6c 6c 65 64 20 |t is con|trolled |
|00000cd0| 62 79 20 79 6f 75 72 20 | 70 6c 75 67 69 6e 2e 0d |by your |plugin..|
|00000ce0| 2f 2f 20 59 6f 75 20 63 | 61 6e 20 64 6f 20 77 68 |// You c|an do wh|
|00000cf0| 61 74 20 79 6f 75 20 77 | 61 6e 74 20 77 69 74 68 |at you w|ant with|
|00000d00| 20 74 68 61 74 20 63 6c | 69 63 6b 2e 0d 65 78 74 | that cl|ick..ext|
|00000d10| 65 72 6e 20 4f 53 53 74 | 61 74 75 73 20 56 69 73 |ern OSSt|atus Vis|
|00000d20| 43 6c 69 63 6b 28 57 69 | 6e 64 6f 77 50 74 72 20 |Click(Wi|ndowPtr |
|00000d30| 69 6e 57 69 6e 64 6f 77 | 2c 20 50 6f 69 6e 74 20 |inWindow|, Point |
|00000d40| 69 6e 43 6c 69 63 6b 2c | 20 55 49 6e 74 33 32 2a |inClick,| UInt32*|
|00000d50| 20 69 6f 52 65 66 63 6f | 6e 29 3b 0d 0d 2f 2f 20 | ioRefco|n);..// |
|00000d60| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|00000d70| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 20 75 73 65 | called |when use|
|00000d80| 72 20 70 72 65 73 73 65 | 73 20 61 20 6b 65 79 2e |r presse|s a key.|
|00000d90| 20 4e 6f 74 65 20 74 68 | 61 74 20 4d 61 63 41 4d | Note th|at MacAM|
|00000da0| 50 20 67 65 74 73 20 74 | 68 69 73 20 6b 65 79 20 |P gets t|his key |
|00000db0| 61 73 20 77 65 6c 6c 0d | 2f 2f 20 61 73 20 61 6c |as well.|// as al|
|00000dc0| 6c 20 6f 74 68 65 72 20 | 76 69 73 75 61 6c 20 70 |l other |visual p|
|00000dd0| 6c 75 67 69 6e 73 2e 0d | 65 78 74 65 72 6e 20 4f |lugins..|extern O|
|00000de0| 53 53 74 61 74 75 73 20 | 56 69 73 4b 65 79 44 6f |SStatus |VisKeyDo|
|00000df0| 77 6e 28 57 69 6e 64 6f | 77 50 74 72 20 69 6e 57 |wn(Windo|wPtr inW|
|00000e00| 69 6e 64 6f 77 2c 20 45 | 76 65 6e 74 52 65 63 6f |indow, E|ventReco|
|00000e10| 72 64 2a 20 69 6e 45 76 | 65 6e 74 2c 20 55 49 6e |rd* inEv|ent, UIn|
|00000e20| 74 33 32 2a 20 69 6f 52 | 65 66 63 6f 6e 29 3b 0d |t32* ioR|efcon);.|
|00000e30| 0d 2f 2f 20 54 68 69 73 | 20 66 75 6e 63 74 69 6f |.// This| functio|
|00000e40| 6e 20 69 73 20 63 61 6c | 6c 65 64 20 77 68 65 6e |n is cal|led when|
|00000e50| 20 77 69 6e 64 6f 77 2d | 73 70 65 63 69 66 69 63 | window-|specific|
|00000e60| 20 65 76 65 6e 74 20 69 | 73 20 70 6f 73 74 65 64 | event i|s posted|
|00000e70| 20 66 6f 72 20 79 6f 75 | 72 20 76 69 73 75 61 6c | for you|r visual|
|00000e80| 20 70 6c 75 67 69 6e 2e | 0d 2f 2f 20 49 66 20 79 | plugin.|.// If y|
|00000e90| 6f 75 20 68 61 76 65 20 | 74 68 69 73 20 73 65 74 |ou have |this set|
|00000ea0| 2c 20 69 74 20 63 61 6e | 20 6f 76 65 72 72 69 64 |, it can| overrid|
|00000eb0| 65 20 56 69 73 44 72 61 | 77 20 66 75 6e 63 74 69 |e VisDra|w functi|
|00000ec0| 6f 6e 2c 20 61 6e 64 20 | 69 74 20 69 73 20 63 61 |on, and |it is ca|
|00000ed0| 6c 6c 65 64 20 77 68 65 | 6e 20 4d 61 63 41 4d 50 |lled whe|n MacAMP|
|00000ee0| 0d 2f 2f 20 77 61 6e 74 | 73 20 79 6f 75 72 20 70 |.// want|s your p|
|00000ef0| 6c 75 67 69 6e 20 74 6f | 20 72 65 64 72 61 77 2e |lugin to| redraw.|
|00000f00| 0d 65 78 74 65 72 6e 20 | 4f 53 53 74 61 74 75 73 |.extern |OSStatus|
|00000f10| 20 56 69 73 4d 61 63 45 | 76 65 6e 74 28 57 69 6e | VisMacE|vent(Win|
|00000f20| 64 6f 77 50 74 72 20 69 | 6e 57 69 6e 64 6f 77 2c |dowPtr i|nWindow,|
|00000f30| 20 45 76 65 6e 74 52 65 | 63 6f 72 64 2a 20 69 6e | EventRe|cord* in|
|00000f40| 45 76 65 6e 74 2c 20 55 | 49 6e 74 33 32 2a 20 69 |Event, U|Int32* i|
|00000f50| 6f 52 65 66 63 6f 6e 29 | 3b 0d 0d 2f 2f 20 54 68 |oRefcon)|;..// Th|
|00000f60| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 63 61 6c 6c |is funct|ion call|
|00000f70| 65 64 20 69 66 20 79 6f | 75 20 72 65 74 75 72 6e |ed if yo|u return|
|00000f80| 20 65 72 72 56 69 73 43 | 75 73 74 6f 6d 2e 20 59 | errVisC|ustom. Y|
|00000f90| 6f 75 20 73 68 6f 75 6c | 64 20 63 6f 70 79 20 74 |ou shoul|d copy t|
|00000fa0| 68 65 20 65 72 72 6f 72 | 20 73 74 72 69 6e 67 0d |he error| string.|
|00000fb0| 2f 2f 20 61 6e 64 20 65 | 72 72 4e 75 6d 20 28 6f |// and e|rrNum (o|
|00000fc0| 70 74 69 6f 6e 61 6c 6c | 79 29 20 61 6e 64 20 72 |ptionall|y) and r|
|00000fd0| 65 74 75 72 6e 20 77 68 | 65 74 68 65 72 20 74 68 |eturn wh|ether th|
|00000fe0| 65 20 65 72 72 6f 72 20 | 69 73 20 66 61 74 61 6c |e error |is fatal|
|00000ff0| 20 6f 72 20 6e 6f 74 2e | 20 49 66 20 74 68 69 73 | or not.| If this|
|00001000| 20 66 75 6e 63 74 69 6f | 6e 0d 2f 2f 20 72 65 74 | functio|n.// ret|
|00001010| 75 72 6e 73 20 74 72 75 | 65 2c 20 4d 61 63 41 4d |urns tru|e, MacAM|
|00001020| 50 20 74 65 72 6d 69 6e | 61 74 65 73 20 79 6f 75 |P termin|ates you|
|00001030| 72 20 70 6c 75 67 69 6e | 2c 20 6f 74 68 65 72 77 |r plugin|, otherw|
|00001040| 69 73 65 20 63 6f 6e 74 | 69 6e 75 65 73 20 65 78 |ise cont|inues ex|
|00001050| 65 63 75 74 69 6f 6e 2e | 0d 65 78 74 65 72 6e 20 |ecution.|.extern |
|00001060| 42 6f 6f 6c 65 61 6e 20 | 56 69 73 45 72 72 6f 72 |Boolean |VisError|
|00001070| 28 53 74 72 69 6e 67 50 | 74 72 20 6f 75 74 45 72 |(StringP|tr outEr|
|00001080| 72 53 74 72 69 6e 67 2c | 20 4f 53 53 74 61 74 75 |rString,| OSStatu|
|00001090| 73 2a 20 6f 75 74 45 72 | 72 4e 75 6d 29 3b 0d 0d |s* outEr|rNum);..|
|000010a0| 2f 2f 20 49 66 20 79 6f | 75 20 64 65 66 69 6e 65 |// If yo|u define|
|000010b0| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | this fu|nction i|
|000010c0| 6e 20 79 6f 75 72 20 67 | 50 6c 75 67 49 6e 66 6f |n your g|PlugInfo|
|000010d0| 2c 20 4d 61 63 41 4d 50 | 20 77 69 6c 6c 20 61 64 |, MacAMP| will ad|
|000010e0| 64 20 61 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |d a corr|espondin|
|000010f0| 67 20 69 74 65 6d 20 69 | 6e 74 6f 0d 2f 2f 20 27 |g item i|nto.// '|
|00001100| 53 65 74 74 69 6e 67 73 | 27 20 73 75 62 6d 65 6e |Settings|' submen|
|00001110| 75 20 6f 66 20 70 6c 75 | 67 69 6e 73 20 6d 65 6e |u of plu|gins men|
|00001120| 75 20 61 6e 64 20 77 69 | 6c 6c 20 63 61 6c 6c 20 |u and wi|ll call |
|00001130| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 77 68 |this fun|ction wh|
|00001140| 65 6e 20 75 73 65 72 20 | 63 68 6f 6f 73 65 73 20 |en user |chooses |
|00001150| 69 74 2e 0d 2f 2f 20 59 | 6f 75 20 63 61 6e 20 64 |it..// Y|ou can d|
|00001160| 69 73 70 6c 61 79 20 73 | 65 74 74 69 6e 67 73 20 |isplay s|ettings |
|00001170| 64 69 61 6c 6f 67 2c 20 | 61 6e 64 20 64 6f 20 77 |dialog, |and do w|
|00001180| 68 61 74 65 76 65 72 20 | 79 6f 75 20 77 61 6e 74 |hatever |you want|
|00001190| 2e 0d 65 78 74 65 72 6e | 20 4f 53 53 74 61 74 75 |..extern| OSStatu|
|000011a0| 73 20 56 69 73 53 65 74 | 74 69 6e 67 73 28 57 69 |s VisSet|tings(Wi|
|000011b0| 6e 64 6f 77 50 74 72 20 | 69 6e 57 69 6e 64 6f 77 |ndowPtr |inWindow|
|000011c0| 2c 20 55 49 6e 74 33 32 | 2a 20 69 6f 52 65 66 63 |, UInt32|* ioRefc|
|000011d0| 6f 6e 29 3b 0d 0d 2f 2f | 20 54 68 65 73 65 20 66 |on);..//| These f|
|000011e0| 75 6e 63 74 69 6f 6e 73 | 20 61 72 65 20 63 61 6c |unctions| are cal|
|000011f0| 6c 65 64 20 77 68 65 6e | 20 74 72 61 63 6b 20 69 |led when| track i|
|00001200| 6e 20 4d 61 63 41 4d 50 | 20 69 73 20 73 74 61 72 |n MacAMP| is star|
|00001210| 74 65 64 20 6f 72 20 73 | 74 6f 70 70 65 64 2e 20 |ted or s|topped. |
|00001220| 59 6f 75 20 63 61 6e 20 | 63 6c 65 61 72 20 64 72 |You can |clear dr|
|00001230| 61 77 20 61 72 65 61 0d | 2f 2f 20 65 74 63 20 68 |aw area.|// etc h|
|00001240| 65 72 65 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 79 |ere. Not|e that y|
|00001250| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 75 73 65 20 |ou can a|lso use |
|00001260| 6d 61 2d 3e 47 65 74 53 | 74 61 74 75 73 20 63 61 |ma->GetS|tatus ca|
|00001270| 6c 6c 62 61 63 6b 20 74 | 6f 20 67 65 74 20 74 68 |llback t|o get th|
|00001280| 65 20 63 75 72 72 65 6e | 74 20 73 74 61 74 75 73 |e curren|t status|
|00001290| 2e 0d 65 78 74 65 72 6e | 20 4f 53 53 74 61 74 75 |..extern| OSStatu|
|000012a0| 73 20 56 69 73 54 72 61 | 63 6b 42 65 67 69 6e 28 |s VisTra|ckBegin(|
|000012b0| 57 69 6e 64 6f 77 50 74 | 72 20 69 6e 57 69 6e 64 |WindowPt|r inWind|
|000012c0| 6f 77 2c 20 55 49 6e 74 | 33 32 2a 20 69 6f 52 65 |ow, UInt|32* ioRe|
|000012d0| 66 63 6f 6e 29 3b 0d 65 | 78 74 65 72 6e 20 4f 53 |fcon);.e|xtern OS|
|000012e0| 53 74 61 74 75 73 20 56 | 69 73 54 72 61 63 6b 45 |Status V|isTrackE|
|000012f0| 6e 64 28 57 69 6e 64 6f | 77 50 74 72 20 69 6e 57 |nd(Windo|wPtr inW|
|00001300| 69 6e 64 6f 77 2c 20 55 | 49 6e 74 33 32 2a 20 69 |indow, U|Int32* i|
|00001310| 6f 52 65 66 63 6f 6e 29 | 3b 0d 0d 2f 2a 2a 2a 2a |oRefcon)|;../****|
|00001320| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001340| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001350| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 09 09 09 09 09 54 59 |********|......TY|
|00001360| 50 45 44 45 46 53 20 41 | 4e 44 20 53 54 52 55 43 |PEDEFS A|ND STRUC|
|00001370| 54 53 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |TS.*****|********|
|00001380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|000013b0| 0d 2f 2f 20 a5 50 6c 75 | 67 69 6e 20 63 61 6c 6c |.// .Plu|gin call|
|000013c0| 62 61 63 6b 73 0d 74 79 | 70 65 64 65 66 20 4f 53 |backs.ty|pedef OS|
|000013d0| 53 74 61 74 75 73 09 28 | 2a 76 69 73 49 6e 69 74 |Status.(|*visInit|
|000013e0| 50 72 6f 63 50 74 72 29 | 28 46 53 53 70 65 63 50 |ProcPtr)|(FSSpecP|
|000013f0| 74 72 2c 20 57 69 6e 64 | 6f 77 50 74 72 2a 2c 20 |tr, Wind|owPtr*, |
|00001400| 55 49 6e 74 33 32 2a 29 | 3b 0d 74 79 70 65 64 65 |UInt32*)|;.typede|
|00001410| 66 20 4f 53 53 74 61 74 | 75 73 09 28 2a 76 69 73 |f OSStat|us.(*vis|
|00001420| 47 65 6e 65 72 69 63 50 | 72 6f 63 50 74 72 29 28 |GenericP|rocPtr)(|
|00001430| 57 69 6e 64 6f 77 50 74 | 72 2c 20 55 49 6e 74 33 |WindowPt|r, UInt3|
|00001440| 32 2a 29 3b 0d 74 79 70 | 65 64 65 66 20 4f 53 53 |2*);.typ|edef OSS|
|00001450| 74 61 74 75 73 09 28 2a | 76 69 73 43 6c 69 63 6b |tatus.(*|visClick|
|00001460| 50 72 6f 63 50 74 72 29 | 28 57 69 6e 64 6f 77 50 |ProcPtr)|(WindowP|
|00001470| 74 72 2c 20 50 6f 69 6e | 74 2c 20 55 49 6e 74 33 |tr, Poin|t, UInt3|
|00001480| 32 2a 29 3b 0d 74 79 70 | 65 64 65 66 20 4f 53 53 |2*);.typ|edef OSS|
|00001490| 74 61 74 75 73 09 28 2a | 76 69 73 45 76 65 6e 74 |tatus.(*|visEvent|
|000014a0| 50 72 6f 63 50 74 72 29 | 28 57 69 6e 64 6f 77 50 |ProcPtr)|(WindowP|
|000014b0| 74 72 2c 20 45 76 65 6e | 74 52 65 63 6f 72 64 2a |tr, Even|tRecord*|
|000014c0| 2c 20 55 49 6e 74 33 32 | 2a 29 3b 0d 74 79 70 65 |, UInt32|*);.type|
|000014d0| 64 65 66 20 42 6f 6f 6c | 65 61 6e 20 09 28 2a 76 |def Bool|ean .(*v|
|000014e0| 69 73 45 72 72 6f 72 50 | 72 6f 63 50 74 72 29 28 |isErrorP|rocPtr)(|
|000014f0| 53 74 72 69 6e 67 50 74 | 72 2c 20 4f 53 53 74 61 |StringPt|r, OSSta|
|00001500| 74 75 73 2a 29 3b 0d 0d | 2f 2f 20 a5 4d 61 63 41 |tus*);..|// .MacA|
|00001510| 4d 50 20 43 61 6c 6c 62 | 61 63 6b 73 0d 2f 2f 20 |MP Callb|acks.// |
|00001520| 20 59 6f 75 20 63 61 6e | 20 63 61 6c 6c 20 74 68 | You can| call th|
|00001530| 65 73 65 20 61 6e 79 74 | 69 6d 65 20 79 6f 75 20 |ese anyt|ime you |
|00001540| 77 61 6e 74 2e 0d 0d 74 | 79 70 65 64 65 66 20 76 |want...t|ypedef v|
|00001550| 6f 69 64 09 09 28 2a 6d | 61 56 69 73 47 65 74 56 |oid..(*m|aVisGetV|
|00001560| 61 6c 75 65 73 41 72 72 | 61 79 29 28 55 49 6e 74 |aluesArr|ay)(UInt|
|00001570| 38 2a 2a 20 6f 75 74 41 | 72 72 61 79 2c 20 55 49 |8** outA|rray, UI|
|00001580| 6e 74 31 36 2a 20 6f 75 | 74 41 72 72 61 79 53 69 |nt16* ou|tArraySi|
|00001590| 7a 65 29 3b 0d 2f 2f 20 | 47 65 74 20 61 6e 20 61 |ze);.// |Get an a|
|000015a0| 72 72 61 79 20 6f 66 20 | 70 72 65 2d 63 6f 6d 70 |rray of |pre-comp|
|000015b0| 75 74 65 64 20 76 61 6c | 75 65 73 20 66 6f 72 20 |uted val|ues for |
|000015c0| 66 72 65 71 75 65 6e 63 | 65 73 2e 0d 2f 2f 20 45 |frequenc|es..// E|
|000015d0| 76 65 72 79 20 76 61 6c | 75 65 20 72 65 70 72 65 |very val|ue repre|
|000015e0| 73 65 6e 74 73 20 6f 6e | 65 20 66 72 65 71 75 65 |sents on|e freque|
|000015f0| 6e 63 79 2c 20 61 6e 64 | 20 63 61 6e 20 62 65 20 |ncy, and| can be |
|00001600| 69 6e 20 72 61 6e 67 65 | 20 23 30 2d 32 33 32 2e |in range| #0-232.|
|00001610| 0d 2f 2f 20 49 6e 70 75 | 74 3a 0d 2f 2f 09 09 6e |.// Inpu|t:.//..n|
|00001620| 6f 6e 65 0d 2f 2f 09 4f | 75 74 70 75 74 3a 0d 2f |one.//.O|utput:./|
|00001630| 2f 09 09 6f 75 74 41 72 | 72 61 79 09 09 3d 20 70 |/..outAr|ray..= p|
|00001640| 6f 69 6e 74 65 72 20 74 | 6f 20 76 61 6c 75 65 73 |ointer t|o values|
|00001650| 20 61 72 72 61 79 0d 2f | 2f 09 09 6f 75 74 41 72 | array./|/..outAr|
|00001660| 72 61 79 53 69 7a 65 09 | 3d 20 73 69 7a 65 20 6f |raySize.|= size o|
|00001670| 66 20 74 68 65 20 61 72 | 72 61 79 0d 2f 2f 09 52 |f the ar|ray.//.R|
|00001680| 65 74 75 72 6e 73 3a 0d | 2f 2f 09 09 6e 6f 74 68 |eturns:.|//..noth|
|00001690| 69 6e 67 0d 0d 74 79 70 | 65 64 65 66 20 76 6f 69 |ing..typ|edef voi|
|000016a0| 64 09 09 28 2a 6d 61 56 | 69 73 47 65 74 46 46 54 |d..(*maV|isGetFFT|
|000016b0| 41 72 72 61 79 29 28 64 | 6f 75 62 6c 65 2a 2a 20 |Array)(d|ouble** |
|000016c0| 6f 75 74 46 46 54 2c 20 | 55 49 6e 74 31 36 2a 20 |outFFT, |UInt16* |
|000016d0| 6f 75 74 46 46 54 53 69 | 7a 65 29 3b 0d 2f 2f 20 |outFFTSi|ze);.// |
|000016e0| 47 65 74 20 46 46 54 20 | 61 72 72 61 79 2e 20 46 |Get FFT |array. F|
|000016f0| 69 72 73 74 20 68 61 6c | 66 20 6f 66 20 74 68 65 |irst hal|f of the|
|00001700| 20 61 72 72 61 79 20 61 | 72 65 20 72 65 61 6c 20 | array a|re real |
|00001710| 70 61 72 74 73 2c 20 73 | 65 63 6f 6e 64 20 2d 20 |parts, s|econd - |
|00001720| 69 6d 61 67 69 6e 61 72 | 79 2e 0d 2f 2f 20 49 6e |imaginar|y..// In|
|00001730| 70 75 74 3a 0d 2f 2f 09 | 09 6e 6f 6e 65 0d 2f 2f |put:.//.|.none.//|
|00001740| 09 4f 75 74 70 75 74 3a | 0d 2f 2f 09 09 6f 75 74 |.Output:|.//..out|
|00001750| 46 46 54 09 09 09 3d 20 | 70 6f 69 6e 74 65 72 20 |FFT...= |pointer |
|00001760| 74 6f 20 72 61 77 20 66 | 66 74 20 61 72 72 61 79 |to raw f|ft array|
|00001770| 20 28 6f 72 20 6e 69 6c | 2c 20 69 66 20 6e 6f 74 | (or nil|, if not|
|00001780| 20 61 76 61 69 6c 61 62 | 6c 65 29 0d 2f 2f 09 09 | availab|le).//..|
|00001790| 6f 75 74 42 75 66 66 65 | 72 53 69 7a 65 09 3d 20 |outBuffe|rSize.= |
|000017a0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 61 72 72 61 |size of |the arra|
|000017b0| 79 0d 2f 2f 09 52 65 74 | 75 72 6e 73 3a 0d 2f 2f |y.//.Ret|urns:.//|
|000017c0| 09 09 6e 6f 74 68 69 6e | 67 0d 0d 74 79 70 65 64 |..nothin|g..typed|
|000017d0| 65 66 20 76 6f 69 64 09 | 09 28 2a 6d 61 56 69 73 |ef void.|.(*maVis|
|000017e0| 47 65 74 53 6f 75 6e 64 | 42 75 66 66 65 72 29 28 |GetSound|Buffer)(|
|000017f0| 50 74 72 2a 20 6f 75 74 | 53 6f 75 6e 64 42 75 66 |Ptr* out|SoundBuf|
|00001800| 66 65 72 2c 20 55 49 6e | 74 31 36 2a 20 6f 75 74 |fer, UIn|t16* out|
|00001810| 42 75 66 66 65 72 53 69 | 7a 65 29 3b 0d 2f 2f 20 |BufferSi|ze);.// |
|00001820| 47 65 74 20 63 75 72 72 | 65 6e 74 20 73 6f 75 6e |Get curr|ent soun|
|00001830| 64 20 62 75 66 66 65 72 | 2e 0d 2f 2f 20 49 6e 70 |d buffer|..// Inp|
|00001840| 75 74 3a 0d 2f 2f 09 09 | 6e 6f 6e 65 0d 2f 2f 09 |ut:.//..|none.//.|
|00001850| 4f 75 74 70 75 74 3a 0d | 2f 2f 09 09 6f 75 74 53 |Output:.|//..outS|
|00001860| 6f 75 6e 64 42 75 66 66 | 65 72 09 3d 20 70 6f 69 |oundBuff|er.= poi|
|00001870| 6e 74 65 72 20 74 6f 20 | 73 6f 75 6e 64 20 62 75 |nter to |sound bu|
|00001880| 66 66 65 72 20 62 65 69 | 6e 67 20 70 6c 61 79 65 |ffer bei|ng playe|
|00001890| 64 20 28 6f 72 20 6e 69 | 6c 2c 20 69 66 20 6e 6f |d (or ni|l, if no|
|000018a0| 20 74 72 61 63 6b 20 69 | 73 20 70 6c 61 79 69 6e | track i|s playin|
|000018b0| 67 29 0d 2f 2f 09 09 6f | 75 74 42 75 66 66 65 72 |g).//..o|utBuffer|
|000018c0| 53 69 7a 65 09 3d 20 73 | 69 7a 65 20 6f 66 20 74 |Size.= s|ize of t|
|000018d0| 68 65 20 62 75 66 66 65 | 72 2c 20 69 6e 20 62 79 |he buffe|r, in by|
|000018e0| 74 65 73 0d 2f 2f 09 52 | 65 74 75 72 6e 73 3a 0d |tes.//.R|eturns:.|
|000018f0| 2f 2f 09 09 6e 6f 74 68 | 69 6e 67 0d 0d 74 79 70 |//..noth|ing..typ|
|00001900| 65 64 65 66 20 76 6f 69 | 64 09 09 28 2a 6d 61 56 |edef voi|d..(*maV|
|00001910| 69 73 47 65 74 53 74 61 | 74 75 73 29 28 55 49 6e |isGetSta|tus)(UIn|
|00001920| 74 33 32 2a 20 6f 75 74 | 54 69 6d 65 72 2c 20 55 |t32* out|Timer, U|
|00001930| 49 6e 74 33 32 2a 20 6f | 75 74 53 74 61 74 75 73 |Int32* o|utStatus|
|00001940| 29 3b 0d 2f 2f 20 47 65 | 74 20 73 74 61 74 75 73 |);.// Ge|t status|
|00001950| 20 6f 66 20 74 68 67 65 | 20 70 6c 61 79 65 72 20 | of thge| player |
|00001960| 28 74 69 6d 65 72 2c 20 | 73 74 61 74 65 73 20 6f |(timer, |states o|
|00001970| 66 20 72 65 70 65 61 74 | 2c 20 72 61 6e 64 6f 6d |f repeat|, random|
|00001980| 2c 20 73 6c 65 65 70 20 | 65 74 63 29 2e 0d 2f 2f |, sleep |etc)..//|
|00001990| 20 49 6e 70 75 74 3a 0d | 2f 2f 09 09 6e 6f 6e 65 | Input:.|//..none|
|000019a0| 0d 2f 2f 09 4f 75 74 70 | 75 74 3a 0d 2f 2f 09 09 |.//.Outp|ut:.//..|
|000019b0| 6f 75 74 54 69 6d 65 72 | 09 09 09 3d 20 74 69 6d |outTimer|...= tim|
|000019c0| 65 72 2c 20 69 6e 20 73 | 65 63 6f 6e 64 73 0d 2f |er, in s|econds./|
|000019d0| 2f 09 09 6f 75 74 53 74 | 61 74 75 73 09 09 09 3d |/..outSt|atus...=|
|000019e0| 20 66 6c 61 67 73 20 66 | 69 65 6c 64 20 63 6f 6e | flags f|ield con|
|000019f0| 74 61 69 6e 69 6e 67 20 | 73 74 61 74 75 73 2a 20 |taining |status* |
|00001a00| 63 6f 6e 73 74 61 6e 74 | 73 2e 0d 2f 2f 09 09 09 |constant|s..//...|
|00001a10| 09 09 09 09 09 28 66 6f | 72 20 65 78 61 6d 70 6c |.....(fo|r exampl|
|00001a20| 65 2c 20 74 6f 20 63 68 | 65 63 6b 20 69 66 20 52 |e, to ch|eck if R|
|00001a30| 61 6e 64 6f 6d 20 6d 6f | 64 65 20 69 73 20 73 65 |andom mo|de is se|
|00001a40| 74 2c 20 63 68 65 63 6b | 20 66 6f 72 20 28 6f 75 |t, check| for (ou|
|00001a50| 74 53 74 61 74 75 73 20 | 26 20 73 74 61 74 75 73 |tStatus |& status|
|00001a60| 52 61 6e 64 6f 6d 29 29 | 0d 2f 2f 09 52 65 74 75 |Random))|.//.Retu|
|00001a70| 72 6e 73 3a 0d 2f 2f 09 | 09 6e 6f 74 68 69 6e 67 |rns:.//.|.nothing|
|00001a80| 0d 0d 2f 2f 20 53 74 61 | 74 75 73 20 63 6f 64 65 |..// Sta|tus code|
|00001a90| 73 0d 65 6e 75 6d 20 7b | 0d 09 73 74 61 74 75 73 |s.enum {|..status|
|00001aa0| 52 61 6e 64 6f 6d 09 3d | 20 28 31 4c 20 3c 3c 20 |Random.=| (1L << |
|00001ab0| 30 29 2c 0d 09 73 74 61 | 74 75 73 53 6c 65 65 70 |0),..sta|tusSleep|
|00001ac0| 09 09 3d 20 28 31 4c 20 | 3c 3c 20 31 29 2c 0d 09 |..= (1L |<< 1),..|
|00001ad0| 73 74 61 74 75 73 52 65 | 70 65 61 74 09 3d 20 28 |statusRe|peat.= (|
|00001ae0| 31 4c 20 3c 3c 20 32 29 | 2c 0d 09 73 74 61 74 75 |1L << 2)|,..statu|
|00001af0| 73 52 65 70 65 61 74 31 | 09 3d 20 28 31 4c 20 3c |sRepeat1|.= (1L <|
|00001b00| 3c 20 33 29 2c 0d 09 73 | 74 61 74 75 73 50 6c 61 |< 3),..s|tatusPla|
|00001b10| 79 69 6e 67 20 09 3d 20 | 28 31 4c 20 3c 3c 20 34 |ying .= |(1L << 4|
|00001b20| 29 2c 0d 09 73 74 61 74 | 75 73 50 61 75 73 65 64 |),..stat|usPaused|
|00001b30| 09 3d 20 28 31 4c 20 3c | 3c 20 35 29 2c 0d 09 73 |.= (1L <|< 5),..s|
|00001b40| 74 61 74 75 73 53 74 6f | 70 70 65 64 20 09 3d 20 |tatusSto|pped .= |
|00001b50| 28 31 4c 20 3c 3c 20 36 | 29 0d 7d 3b 0d 0d 74 79 |(1L << 6|).};..ty|
|00001b60| 70 65 64 65 66 20 4f 53 | 53 74 61 74 75 73 09 28 |pedef OS|Status.(|
|00001b70| 2a 6d 61 56 69 73 47 65 | 74 54 72 61 63 6b 4c 6f |*maVisGe|tTrackLo|
|00001b80| 63 61 74 69 6f 6e 50 72 | 6f 63 50 74 72 29 28 4f |cationPr|ocPtr)(O|
|00001b90| 53 54 79 70 65 2a 20 6f | 75 74 54 79 70 65 2c 20 |SType* o|utType, |
|00001ba0| 50 74 72 2a 20 6f 75 74 | 44 61 74 61 29 3b 0d 2f |Ptr* out|Data);./|
|00001bb0| 2f 20 47 65 74 20 63 75 | 72 72 65 6e 74 20 74 72 |/ Get cu|rrent tr|
|00001bc0| 61 63 6b 20 6c 6f 63 61 | 74 69 6f 6e 2e 0d 2f 2f |ack loca|tion..//|
|00001bd0| 20 49 6e 70 75 74 3a 0d | 2f 2f 09 09 6e 6f 6e 65 | Input:.|//..none|
|00001be0| 0d 2f 2f 09 4f 75 74 70 | 75 74 3a 0d 2f 2f 09 09 |.//.Outp|ut:.//..|
|00001bf0| 6f 75 74 54 79 70 65 09 | 09 09 3d 20 6c 6f 63 61 |outType.|..= loca|
|00001c00| 74 69 6f 6e 20 74 79 70 | 65 2c 20 65 69 74 68 65 |tion typ|e, eithe|
|00001c10| 72 20 6c 6f 63 61 74 69 | 6f 6e 46 69 6c 65 2c 20 |r locati|onFile, |
|00001c20| 6c 6f 63 61 74 69 6f 6e | 55 52 4c 20 6f 72 20 6c |location|URL or l|
|00001c30| 6f 63 61 74 69 6f 6e 4e | 6f 6e 65 0d 2f 2f 09 09 |ocationN|one.//..|
|00001c40| 6f 75 74 44 61 74 61 09 | 09 09 3d 20 6c 6f 63 61 |outData.|..= loca|
|00001c50| 74 69 6f 6e 20 64 61 74 | 61 20 28 64 65 70 65 6e |tion dat|a (depen|
|00001c60| 64 73 20 6f 6e 20 6f 75 | 74 54 79 70 65 2c 20 73 |ds on ou|tType, s|
|00001c70| 65 65 20 62 65 6c 6f 77 | 29 0d 2f 2f 09 52 65 74 |ee below|).//.Ret|
|00001c80| 75 72 6e 73 3a 0d 2f 2f | 09 09 6e 6f 45 72 72 09 |urns:.//|..noErr.|
|00001c90| 09 09 3d 20 6c 79 72 69 | 63 73 20 69 6e 66 6f 72 |..= lyri|cs infor|
|00001ca0| 6d 61 74 69 6f 6e 20 66 | 65 74 63 68 65 64 2e 0d |mation f|etched..|
|00001cb0| 2f 2f 09 09 72 65 73 4e | 6f 74 46 6f 75 6e 64 09 |//..resN|otFound.|
|00001cc0| 09 3d 20 6e 6f 20 74 72 | 61 63 6b 20 69 73 20 70 |.= no tr|ack is p|
|00001cd0| 6c 61 79 69 6e 67 20 61 | 74 20 74 68 65 20 6d 6f |laying a|t the mo|
|00001ce0| 6d 65 6e 74 2e 0d 0d 2f | 2f 20 4c 6f 63 61 74 69 |ment.../|/ Locati|
|00001cf0| 6f 6e 20 74 79 70 65 73 | 0d 65 6e 75 6d 20 7b 0d |on types|.enum {.|
|00001d00| 09 6c 6f 63 61 74 69 6f | 6e 46 69 6c 65 09 3d 20 |.locatio|nFile.= |
|00001d10| 27 66 69 6c 65 27 2c 09 | 09 2f 2f 20 6f 75 74 44 |'file',.|.// outD|
|00001d20| 61 74 61 20 3d 20 46 53 | 53 70 65 63 50 74 72 0d |ata = FS|SpecPtr.|
|00001d30| 09 6c 6f 63 61 74 69 6f | 6e 55 52 4c 09 09 3d 20 |.locatio|nURL..= |
|00001d40| 27 75 72 6c 20 27 2c 09 | 09 2f 2f 20 6f 75 74 44 |'url ',.|.// outD|
|00001d50| 61 74 61 20 3d 20 63 68 | 61 72 2a 20 28 43 20 73 |ata = ch|ar* (C s|
|00001d60| 74 72 69 6e 67 29 0d 09 | 6c 6f 63 61 74 69 6f 6e |tring)..|location|
|00001d70| 4e 6f 6e 65 09 3d 20 27 | 6e 6f 6e 65 27 09 09 2f |None.= '|none'../|
|00001d80| 2f 20 6f 75 74 44 61 74 | 61 20 3d 20 76 6f 69 64 |/ outDat|a = void|
|00001d90| 2c 20 64 6f 65 73 20 6e | 6f 74 20 63 6f 6e 74 61 |, does n|ot conta|
|00001da0| 69 6e 73 20 76 61 6c 69 | 64 20 64 61 74 61 0d 7d |ins vali|d data.}|
|00001db0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 4f 53 53 74 61 |;..typed|ef OSSta|
|00001dc0| 74 75 73 09 28 2a 6d 61 | 56 69 73 47 65 74 49 44 |tus.(*ma|VisGetID|
|00001dd0| 33 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 50 72 6f 63 |3Informa|tionProc|
|00001de0| 50 74 72 29 28 53 74 72 | 69 6e 67 50 74 72 20 6f |Ptr)(Str|ingPtr o|
|00001df0| 75 74 41 72 74 69 73 74 | 2c 20 53 74 72 69 6e 67 |utArtist|, String|
|00001e00| 50 74 72 20 6f 75 74 54 | 69 74 6c 65 2c 20 53 74 |Ptr outT|itle, St|
|00001e10| 72 69 6e 67 50 74 72 20 | 6f 75 74 41 6c 62 75 6d |ringPtr |outAlbum|
|00001e20| 2c 20 53 74 72 69 6e 67 | 50 74 72 20 6f 75 74 59 |, String|Ptr outY|
|00001e30| 65 61 72 2c 20 50 74 72 | 2a 20 6f 75 74 4c 79 72 |ear, Ptr|* outLyr|
|00001e40| 69 63 73 29 3b 0d 2f 2f | 20 47 65 74 20 63 75 72 |ics);.//| Get cur|
|00001e50| 72 65 6e 74 20 74 72 61 | 63 6b 20 49 44 33 20 69 |rent tra|ck ID3 i|
|00001e60| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0d 2f 2f 20 49 |nformati|on..// I|
|00001e70| 6e 70 75 74 3a 0d 2f 2f | 09 09 6e 6f 6e 65 0d 2f |nput:.//|..none./|
|00001e80| 2f 09 4f 75 74 70 75 74 | 3a 0d 2f 2f 09 09 6f 75 |/.Output|:.//..ou|
|00001e90| 74 41 72 74 69 73 74 09 | 09 3d 20 61 72 74 69 73 |tArtist.|.= artis|
|00001ea0| 74 0d 2f 2f 09 09 6f 75 | 74 54 69 74 6c 65 09 09 |t.//..ou|tTitle..|
|00001eb0| 3d 20 74 69 74 6c 65 0d | 2f 2f 09 09 6f 75 74 41 |= title.|//..outA|
|00001ec0| 6c 62 75 6d 09 09 3d 20 | 61 6c 62 75 6d 20 28 69 |lbum..= |album (i|
|00001ed0| 66 20 61 76 61 69 6c 61 | 62 6c 65 2c 20 6f 72 20 |f availa|ble, or |
|00001ee0| 6e 69 6c 29 0d 2f 2f 09 | 09 6f 75 74 59 65 61 72 |nil).//.|.outYear|
|00001ef0| 09 09 09 3d 20 79 65 61 | 72 20 28 69 66 20 61 76 |...= yea|r (if av|
|00001f00| 61 69 6c 61 62 6c 65 2c | 20 6f 72 20 6e 69 6c 29 |ailable,| or nil)|
|00001f10| 0d 2f 2f 09 09 6f 75 74 | 4c 79 72 69 63 73 09 09 |.//..out|Lyrics..|
|00001f20| 3d 20 6c 79 72 69 63 73 | 20 28 69 66 20 61 76 61 |= lyrics| (if ava|
|00001f30| 69 6c 61 62 6c 65 2c 20 | 6f 72 20 6e 69 6c 29 0d |ilable, |or nil).|
|00001f40| 2f 2f 09 52 65 74 75 72 | 6e 73 3a 0d 2f 2f 09 09 |//.Retur|ns:.//..|
|00001f50| 6e 6f 45 72 72 09 09 09 | 3d 20 6c 79 72 69 63 73 |noErr...|= lyrics|
|00001f60| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 65 74 | informa|tion fet|
|00001f70| 63 68 65 64 2e 0d 2f 2f | 09 09 72 65 73 4e 6f 74 |ched..//|..resNot|
|00001f80| 46 6f 75 6e 64 09 09 3d | 20 6e 6f 20 74 72 61 63 |Found..=| no trac|
|00001f90| 6b 20 69 73 20 70 6c 61 | 79 69 6e 67 20 61 74 20 |k is pla|ying at |
|00001fa0| 74 68 65 20 6d 6f 6d 65 | 6e 74 2e 0d 0d 74 79 70 |the mome|nt...typ|
|00001fb0| 65 64 65 66 20 51 44 47 | 6c 6f 62 61 6c 73 50 74 |edef QDG|lobalsPt|
|00001fc0| 72 20 28 2a 6d 61 56 69 | 73 47 65 74 51 44 50 74 |r (*maVi|sGetQDPt|
|00001fd0| 72 50 72 6f 63 50 74 72 | 29 28 76 6f 69 64 29 3b |rProcPtr|)(void);|
|00001fe0| 0d 2f 2f 20 52 65 74 75 | 72 6e 20 74 68 65 20 70 |.// Retu|rn the p|
|00001ff0| 6f 69 6e 74 65 72 20 74 | 6f 20 51 44 20 67 6c 6f |ointer t|o QD glo|
|00002000| 62 61 6c 73 20 28 71 64 | 2d 3e 2e 2e 2e 29 2e 0d |bals (qd|->...)..|
|00002010| 2f 2f 20 49 6e 70 75 74 | 3a 0d 2f 2f 09 09 6e 6f |// Input|:.//..no|
|00002020| 6e 65 0d 2f 2f 09 4f 75 | 74 70 75 74 3a 0d 2f 2f |ne.//.Ou|tput:.//|
|00002030| 09 09 6e 6f 6e 65 0d 2f | 2f 09 52 65 74 75 72 6e |..none./|/.Return|
|00002040| 73 3a 0d 2f 2f 09 09 70 | 6f 69 6e 74 65 72 20 74 |s:.//..p|ointer t|
|00002050| 6f 20 71 64 20 67 6c 6f | 62 61 6c 73 0d 0d 74 79 |o qd glo|bals..ty|
|00002060| 70 65 64 65 66 20 76 6f | 69 64 20 28 2a 6d 61 56 |pedef vo|id (*maV|
|00002070| 69 73 45 6e 74 65 72 46 | 75 6c 6c 53 63 72 65 65 |isEnterF|ullScree|
|00002080| 6e 29 28 4f 53 54 79 70 | 65 20 69 6e 41 75 74 68 |n)(OSTyp|e inAuth|
|00002090| 6f 72 49 44 2c 20 4f 53 | 54 79 70 65 20 69 6e 50 |orID, OS|Type inP|
|000020a0| 6c 75 67 69 6e 49 44 29 | 3b 0d 2f 2f 20 4e 6f 74 |luginID)|;.// Not|
|000020b0| 69 66 79 20 4d 61 63 41 | 4d 50 20 6f 66 20 79 6f |ify MacA|MP of yo|
|000020c0| 75 72 20 70 6c 75 67 69 | 6e 20 65 6e 74 65 72 69 |ur plugi|n enteri|
|000020d0| 6e 67 20 66 75 6c 6c 2d | 73 63 72 65 65 6e 20 6d |ng full-|screen m|
|000020e0| 6f 64 65 2e 0d 2f 2f 20 | 41 66 74 65 72 20 74 68 |ode..// |After th|
|000020f0| 69 73 20 63 61 6c 6c 20 | 4d 61 63 41 4d 50 20 68 |is call |MacAMP h|
|00002100| 69 64 65 73 20 61 6c 6c | 20 69 74 73 20 77 69 6e |ides all| its win|
|00002110| 64 6f 77 73 2c 20 61 6e | 64 20 73 75 73 70 65 6e |dows, an|d suspen|
|00002120| 64 73 20 70 72 6f 63 65 | 73 73 69 6e 67 20 6f 74 |ds proce|ssing ot|
|00002130| 68 65 72 20 76 69 73 75 | 61 6c 20 70 6c 75 67 69 |her visu|al plugi|
|00002140| 6e 73 0d 2f 2f 20 74 6f | 20 65 6e 73 75 72 65 20 |ns.// to| ensure |
|00002150| 6d 61 78 69 6d 75 6d 20 | 43 50 55 20 74 69 6d 65 |maximum |CPU time|
|00002160| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 6f 72 20 79 | availab|le for y|
|00002170| 6f 75 72 20 70 6c 75 67 | 69 6e 2e 0d 2f 2f 20 49 |our plug|in..// I|
|00002180| 6e 70 75 74 3a 0d 2f 2f | 09 09 69 6e 41 75 74 68 |nput:.//|..inAuth|
|00002190| 6f 72 49 44 09 09 3d 20 | 61 75 74 68 6f 72 20 49 |orID..= |author I|
|000021a0| 44 20 61 73 20 64 65 66 | 69 6e 65 64 20 69 6e 20 |D as def|ined in |
|000021b0| 56 69 73 49 6e 66 6f 42 | 6c 6f 63 6b 20 73 74 72 |VisInfoB|lock str|
|000021c0| 75 63 74 75 72 65 0d 2f | 2f 09 09 69 6e 50 6c 75 |ucture./|/..inPlu|
|000021d0| 67 49 44 09 09 3d 20 70 | 6c 75 67 69 6e 20 49 44 |gID..= p|lugin ID|
|000021e0| 20 61 73 20 64 65 66 69 | 6e 65 64 20 69 6e 20 56 | as defi|ned in V|
|000021f0| 69 73 49 6e 66 6f 42 6c | 6f 63 6b 20 73 74 72 75 |isInfoBl|ock stru|
|00002200| 63 74 75 72 65 0d 2f 2f | 09 4f 75 74 70 75 74 3a |cture.//|.Output:|
|00002210| 0d 2f 2f 09 09 6e 6f 6e | 65 0d 2f 2f 09 52 65 74 |.//..non|e.//.Ret|
|00002220| 75 72 6e 73 3a 0d 2f 2f | 09 09 6e 6f 74 68 69 6e |urns:.//|..nothin|
|00002230| 67 0d 2f 2f 0d 2f 2f 20 | 4e 6f 74 65 3a 20 69 66 |g.//.// |Note: if|
|00002240| 20 79 6f 75 20 70 61 73 | 73 20 61 75 74 68 6f 72 | you pas|s author|
|00002250| 2f 70 6c 75 67 69 6e 20 | 49 44 73 20 64 69 66 66 |/plugin |IDs diff|
|00002260| 65 72 65 6e 74 20 74 68 | 61 6e 20 64 65 66 69 6e |erent th|an defin|
|00002270| 65 64 20 69 6e 20 79 6f | 75 72 20 56 69 73 49 6e |ed in yo|ur VisIn|
|00002280| 66 6f 42 6c 6f 63 6b 2c | 20 74 68 61 74 20 63 6f |foBlock,| that co|
|00002290| 75 6c 64 20 63 61 75 73 | 65 0d 2f 2f 20 61 62 6e |uld caus|e.// abn|
|000022a0| 6f 72 6d 61 6c 20 4d 61 | 63 41 4d 50 20 62 65 68 |ormal Ma|cAMP beh|
|000022b0| 61 76 69 6f 72 2e 0d 0d | 74 79 70 65 64 65 66 20 |avior...|typedef |
|000022c0| 76 6f 69 64 20 28 2a 6d | 61 56 69 73 45 78 69 74 |void (*m|aVisExit|
|000022d0| 46 75 6c 6c 53 63 72 65 | 65 6e 29 28 76 6f 69 64 |FullScre|en)(void|
|000022e0| 29 3b 0d 2f 2f 20 4e 6f | 74 69 66 79 20 4d 61 63 |);.// No|tify Mac|
|000022f0| 41 4d 50 20 6f 66 20 79 | 6f 75 72 20 70 6c 75 67 |AMP of y|our plug|
|00002300| 69 6e 20 65 78 69 74 69 | 6e 67 20 66 75 6c 6c 2d |in exiti|ng full-|
|00002310| 73 63 72 65 65 6e 20 6d | 6f 64 65 2e 0d 2f 2f 20 |screen m|ode..// |
|00002320| 41 6c 6c 20 70 72 65 76 | 69 6f 75 73 6c 79 20 68 |All prev|iously h|
|00002330| 69 64 64 65 6e 20 77 69 | 6e 64 6f 77 73 20 77 69 |idden wi|ndows wi|
|00002340| 6c 6c 20 62 65 20 73 68 | 6f 77 6e 20 61 67 61 69 |ll be sh|own agai|
|00002350| 6e 2c 20 61 6e 64 20 6f | 74 68 65 72 20 76 69 73 |n, and o|ther vis|
|00002360| 75 61 6c 20 70 6c 75 67 | 69 6e 73 20 77 69 6c 6c |ual plug|ins will|
|00002370| 20 67 65 74 20 65 76 65 | 6e 74 73 2e 0d 2f 2f 20 | get eve|nts..// |
|00002380| 49 6e 70 75 74 3a 0d 2f | 2f 09 09 6e 6f 6e 65 0d |Input:./|/..none.|
|00002390| 2f 2f 09 4f 75 74 70 75 | 74 3a 0d 2f 2f 09 09 6e |//.Outpu|t:.//..n|
|000023a0| 6f 6e 65 0d 2f 2f 09 52 | 65 74 75 72 6e 73 3a 0d |one.//.R|eturns:.|
|000023b0| 2f 2f 09 09 6e 6f 74 68 | 69 6e 67 0d 0d 74 79 70 |//..noth|ing..typ|
|000023c0| 65 64 65 66 20 4f 53 53 | 74 61 74 75 73 20 28 2a |edef OSS|tatus (*|
|000023d0| 6d 61 56 69 73 53 61 76 | 65 50 72 65 66 73 29 28 |maVisSav|ePrefs)(|
|000023e0| 4f 53 54 79 70 65 20 69 | 6e 41 75 74 68 6f 72 49 |OSType i|nAuthorI|
|000023f0| 44 2c 20 4f 53 54 79 70 | 65 20 69 6e 50 6c 75 67 |D, OSTyp|e inPlug|
|00002400| 69 6e 49 44 2c 20 50 74 | 72 20 69 6e 42 75 66 66 |inID, Pt|r inBuff|
|00002410| 65 72 2c 20 55 49 6e 74 | 31 36 20 69 6e 53 69 7a |er, UInt|16 inSiz|
|00002420| 65 29 3b 0d 2f 2f 20 53 | 61 76 65 20 70 6c 75 67 |e);.// S|ave plug|
|00002430| 69 6e 2d 73 70 65 63 69 | 66 69 63 20 70 72 65 66 |in-speci|fic pref|
|00002440| 65 72 65 6e 63 65 73 20 | 69 6e 20 4d 61 63 41 4d |erences |in MacAM|
|00002450| 50 20 44 61 74 61 20 66 | 69 6c 65 20 6c 6f 63 61 |P Data f|ile loca|
|00002460| 74 65 64 20 69 6e 20 53 | 79 73 74 65 6d 20 46 6f |ted in S|ystem Fo|
|00002470| 6c 64 65 72 2e 0d 2f 2f | 20 49 6e 70 75 74 3a 0d |lder..//| Input:.|
|00002480| 2f 2f 09 09 69 6e 41 75 | 74 68 6f 72 49 44 20 09 |//..inAu|thorID .|
|00002490| 09 3d 20 61 75 74 68 6f | 72 49 44 20 6f 66 20 70 |.= autho|rID of p|
|000024a0| 6c 75 67 69 6e 0d 2f 2f | 09 09 69 6e 50 6c 75 67 |lugin.//|..inPlug|
|000024b0| 69 6e 49 44 20 09 09 3d | 20 70 6c 75 67 69 6e 49 |inID ..=| pluginI|
|000024c0| 44 20 6f 66 20 70 6c 75 | 67 69 6e 0d 2f 2f 09 09 |D of plu|gin.//..|
|000024d0| 69 6e 42 75 66 66 65 72 | 09 09 3d 20 70 6f 69 6e |inBuffer|..= poin|
|000024e0| 74 65 72 20 74 6f 20 62 | 75 66 66 65 72 20 63 6f |ter to b|uffer co|
|000024f0| 6e 74 61 69 6e 69 6e 67 | 20 70 72 65 66 65 72 65 |ntaining| prefere|
|00002500| 6e 63 65 73 20 63 68 75 | 6e 6b 20 74 6f 20 62 65 |nces chu|nk to be|
|00002510| 20 73 61 76 65 64 0d 2f | 2f 09 09 69 6e 53 69 7a | saved./|/..inSiz|
|00002520| 65 09 09 09 3d 20 73 69 | 7a 65 20 6f 66 20 62 75 |e...= si|ze of bu|
|00002530| 66 66 65 72 20 74 6f 20 | 62 65 20 73 61 76 65 64 |ffer to |be saved|
|00002540| 0d 2f 2f 09 4f 75 74 70 | 75 74 3a 0d 2f 2f 09 09 |.//.Outp|ut:.//..|
|00002550| 6e 6f 6e 65 0d 2f 2f 09 | 52 65 74 75 72 6e 73 3a |none.//.|Returns:|
|00002560| 0d 2f 2f 09 09 6e 6f 45 | 72 72 09 09 09 3d 20 70 |.//..noE|rr...= p|
|00002570| 72 65 66 65 72 65 6e 63 | 65 73 20 73 61 76 65 64 |referenc|es saved|
|00002580| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 2e 0d 2f | success|fully../|
|00002590| 2f 09 09 6d 65 6d 46 75 | 6c 6c 45 72 72 09 09 3d |/..memFu|llErr..=|
|000025a0| 20 61 6e 20 75 6e 6b 6e | 6f 77 6e 2c 20 70 72 6f | an unkn|own, pro|
|000025b0| 62 61 62 6c 79 20 6d 65 | 6d 6f 72 79 2d 72 65 6c |bably me|mory-rel|
|000025c0| 61 74 65 64 20 65 72 72 | 6f 72 20 68 61 73 20 6f |ated err|or has o|
|000025d0| 63 63 75 72 72 65 64 2e | 0d 0d 74 79 70 65 64 65 |ccurred.|..typede|
|000025e0| 66 20 4f 53 53 74 61 74 | 75 73 20 28 2a 6d 61 56 |f OSStat|us (*maV|
|000025f0| 69 73 52 65 61 64 50 72 | 65 66 73 29 28 4f 53 54 |isReadPr|efs)(OST|
|00002600| 79 70 65 20 69 6e 41 75 | 74 68 6f 72 49 44 2c 20 |ype inAu|thorID, |
|00002610| 4f 53 54 79 70 65 20 69 | 6e 50 6c 75 67 69 6e 49 |OSType i|nPluginI|
|00002620| 44 2c 20 50 74 72 20 69 | 6e 42 75 66 66 65 72 2c |D, Ptr i|nBuffer,|
|00002630| 20 55 49 6e 74 31 36 2a | 20 69 6f 53 69 7a 65 29 | UInt16*| ioSize)|
|00002640| 3b 0d 2f 2f 20 52 65 61 | 64 20 70 6c 75 67 69 6e |;.// Rea|d plugin|
|00002650| 2d 73 70 65 63 69 66 69 | 63 20 70 72 65 66 65 72 |-specifi|c prefer|
|00002660| 65 6e 63 65 73 20 79 6f | 75 20 68 61 76 65 20 73 |ences yo|u have s|
|00002670| 61 76 65 64 20 62 65 66 | 6f 72 65 20 77 69 74 68 |aved bef|ore with|
|00002680| 20 53 61 76 65 50 72 65 | 66 73 20 68 6f 6f 6b 2e | SavePre|fs hook.|
|00002690| 0d 2f 2f 20 49 6e 70 75 | 74 3a 0d 2f 2f 09 09 69 |.// Inpu|t:.//..i|
|000026a0| 6e 41 75 74 68 6f 72 49 | 44 20 09 09 3d 20 61 75 |nAuthorI|D ..= au|
|000026b0| 74 68 6f 72 49 44 20 6f | 66 20 70 6c 75 67 69 6e |thorID o|f plugin|
|000026c0| 0d 2f 2f 09 09 69 6e 50 | 6c 75 67 69 6e 49 44 20 |.//..inP|luginID |
|000026d0| 09 09 3d 20 70 6c 75 67 | 69 6e 49 44 20 6f 66 20 |..= plug|inID of |
|000026e0| 70 6c 75 67 69 6e 0d 2f | 2f 09 09 69 6e 42 75 66 |plugin./|/..inBuf|
|000026f0| 66 65 72 09 09 3d 20 70 | 6f 69 6e 74 65 72 20 74 |fer..= p|ointer t|
|00002700| 6f 20 70 72 65 2d 61 6c | 6c 6f 63 61 74 65 64 20 |o pre-al|located |
|00002710| 62 75 66 66 65 72 20 74 | 6f 20 73 74 6f 72 65 20 |buffer t|o store |
|00002720| 70 72 65 66 65 72 65 6e | 63 65 73 0d 2f 2f 09 09 |preferen|ces.//..|
|00002730| 69 6f 53 69 7a 65 09 09 | 09 3d 20 73 69 7a 65 20 |ioSize..|.= size |
|00002740| 6f 66 20 61 6c 6c 6f 63 | 61 74 65 64 20 62 75 66 |of alloc|ated buf|
|00002750| 66 65 72 0d 2f 2f 09 4f | 75 74 70 75 74 3a 0d 2f |fer.//.O|utput:./|
|00002760| 2f 09 09 69 6f 53 69 7a | 65 09 09 09 3d 20 61 63 |/..ioSiz|e...= ac|
|00002770| 74 75 61 6c 20 73 69 7a | 65 20 6f 66 20 70 72 65 |tual siz|e of pre|
|00002780| 66 65 72 65 6e 63 65 73 | 0d 2f 2f 09 52 65 74 75 |ferences|.//.Retu|
|00002790| 72 6e 73 3a 0d 2f 2f 09 | 09 6e 6f 45 72 72 09 09 |rns:.//.|.noErr..|
|000027a0| 09 3d 20 70 72 65 66 65 | 72 65 6e 63 65 73 20 72 |.= prefe|rences r|
|000027b0| 65 61 64 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |ead succ|essfully|
|000027c0| 2e 0d 2f 2f 09 09 72 65 | 73 4e 6f 74 46 6f 75 6e |..//..re|sNotFoun|
|000027d0| 64 09 09 3d 20 75 6e 61 | 62 6c 65 20 74 6f 20 66 |d..= una|ble to f|
|000027e0| 69 6e 64 20 73 75 63 68 | 20 70 72 65 66 65 72 65 |ind such| prefere|
|000027f0| 6e 63 65 73 20 63 68 75 | 6e 6b 0d 2f 2f 09 09 6d |nces chu|nk.//..m|
|00002800| 65 6d 46 75 6c 6c 45 72 | 72 09 09 3d 20 73 69 7a |emFullEr|r..= siz|
|00002810| 65 20 6f 66 20 70 72 65 | 66 65 72 65 6e 63 65 73 |e of pre|ferences|
|00002820| 20 63 68 75 6e 6b 20 65 | 78 63 65 65 64 73 20 73 | chunk e|xceeds s|
|00002830| 69 7a 65 20 6f 66 20 61 | 6c 6c 6f 63 61 74 65 64 |ize of a|llocated|
|00002840| 20 62 75 66 66 65 72 0d | 2f 2f 09 09 09 09 09 09 | buffer.|//......|
|00002850| 09 28 69 6f 53 69 7a 65 | 20 63 6f 6e 74 61 69 6e |.(ioSize| contain|
|00002860| 73 20 73 69 7a 65 20 6f | 66 20 70 72 65 66 65 72 |s size o|f prefer|
|00002870| 65 6e 63 65 73 20 63 68 | 75 6e 6b 29 0d 0d 2f 2f |ences ch|unk)..//|
|00002880| 20 56 61 72 69 6f 75 73 | 20 73 74 72 75 63 74 75 | Various| structu|
|00002890| 72 65 73 0d 23 70 72 61 | 67 6d 61 20 6f 70 74 69 |res.#pra|gma opti|
|000028a0| 6f 6e 73 20 61 6c 69 67 | 6e 3d 70 6f 77 65 72 0d |ons alig|n=power.|
|000028b0| 0d 2f 2f 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |.// This| is the |
|000028c0| 73 74 72 75 63 74 75 72 | 65 20 66 6f 72 20 4d 61 |structur|e for Ma|
|000028d0| 63 41 4d 50 20 63 61 6c | 6c 62 61 63 6b 73 2e 0d |cAMP cal|lbacks..|
|000028e0| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 7b |typedef |struct {|
|000028f0| 0d 09 6d 61 56 69 73 47 | 65 74 56 61 6c 75 65 73 |..maVisG|etValues|
|00002900| 41 72 72 61 79 09 09 09 | 09 47 65 74 56 61 6c 75 |Array...|.GetValu|
|00002910| 65 73 3b 0d 09 6d 61 56 | 69 73 47 65 74 46 46 54 |es;..maV|isGetFFT|
|00002920| 41 72 72 61 79 09 09 09 | 09 47 65 74 46 46 54 3b |Array...|.GetFFT;|
|00002930| 0d 09 6d 61 56 69 73 47 | 65 74 53 74 61 74 75 73 |..maVisG|etStatus|
|00002940| 09 09 09 09 09 47 65 74 | 53 74 61 74 75 73 3b 0d |.....Get|Status;.|
|00002950| 09 6d 61 56 69 73 47 65 | 74 54 72 61 63 6b 4c 6f |.maVisGe|tTrackLo|
|00002960| 63 61 74 69 6f 6e 50 72 | 6f 63 50 74 72 09 47 65 |cationPr|ocPtr.Ge|
|00002970| 74 54 72 61 63 6b 4c 6f | 63 61 74 69 6f 6e 3b 0d |tTrackLo|cation;.|
|00002980| 09 6d 61 56 69 73 47 65 | 74 49 44 33 49 6e 66 6f |.maVisGe|tID3Info|
|00002990| 72 6d 61 74 69 6f 6e 50 | 72 6f 63 50 74 72 09 47 |rmationP|rocPtr.G|
|000029a0| 65 74 49 44 33 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |etID3Inf|ormation|
|000029b0| 3b 0d 09 6d 61 56 69 73 | 47 65 74 51 44 50 74 72 |;..maVis|GetQDPtr|
|000029c0| 50 72 6f 63 50 74 72 09 | 09 09 47 65 74 51 44 47 |ProcPtr.|..GetQDG|
|000029d0| 6c 6f 62 61 6c 73 3b 0d | 09 0d 09 2f 2f 20 46 75 |lobals;.|...// Fu|
|000029e0| 6c 6c 2d 73 63 72 65 65 | 6e 20 6d 6f 64 65 0d 09 |ll-scree|n mode..|
|000029f0| 6d 61 56 69 73 45 6e 74 | 65 72 46 75 6c 6c 53 63 |maVisEnt|erFullSc|
|00002a00| 72 65 65 6e 09 09 09 45 | 6e 74 65 72 46 75 6c 6c |reen...E|nterFull|
|00002a10| 53 63 72 65 65 6e 3b 0d | 09 6d 61 56 69 73 45 78 |Screen;.|.maVisEx|
|00002a20| 69 74 46 75 6c 6c 53 63 | 72 65 65 6e 09 09 09 09 |itFullSc|reen....|
|00002a30| 45 78 69 74 46 75 6c 6c | 53 63 72 65 65 6e 3b 0d |ExitFull|Screen;.|
|00002a40| 09 0d 09 2f 2f 20 53 74 | 6f 72 69 6e 67 20 61 6e |...// St|oring an|
|00002a50| 64 20 72 65 61 64 69 6e | 67 20 70 72 65 66 73 0d |d readin|g prefs.|
|00002a60| 09 6d 61 56 69 73 52 65 | 61 64 50 72 65 66 73 09 |.maVisRe|adPrefs.|
|00002a70| 09 09 09 09 52 65 61 64 | 50 72 65 66 73 3b 0d 09 |....Read|Prefs;..|
|00002a80| 6d 61 56 69 73 53 61 76 | 65 50 72 65 66 73 09 09 |maVisSav|ePrefs..|
|00002a90| 09 09 09 53 61 76 65 50 | 72 65 66 73 3b 0d 0d 09 |...SaveP|refs;...|
|00002aa0| 2f 2f 20 4e 65 77 20 66 | 6f 72 20 31 2e 30 31 0d |// New f|or 1.01.|
|00002ab0| 09 6d 61 56 69 73 47 65 | 74 53 6f 75 6e 64 42 75 |.maVisGe|tSoundBu|
|00002ac0| 66 66 65 72 09 09 09 09 | 47 65 74 53 6f 75 6e 64 |ffer....|GetSound|
|00002ad0| 42 75 66 66 65 72 3b 0d | 7d 20 56 50 43 61 6c 6c |Buffer;.|} VPCall|
|00002ae0| 62 61 63 6b 73 2c 20 2a | 56 50 43 61 6c 6c 62 61 |backs, *|VPCallba|
|00002af0| 63 6b 73 50 74 72 3b 0d | 0d 2f 2f 20 4d 61 69 6e |cksPtr;.|.// Main|
|00002b00| 20 73 74 72 75 63 74 75 | 72 65 20 66 6f 72 20 74 | structu|re for t|
|00002b10| 68 65 20 70 6c 75 67 69 | 6e 2e 20 4d 61 69 6e 20 |he plugi|n. Main |
|00002b20| 65 6e 74 72 79 20 70 6f | 69 6e 74 20 66 6f 72 20 |entry po|int for |
|00002b30| 74 68 65 20 50 45 46 20 | 66 72 61 67 6d 65 6e 74 |the PEF |fragment|
|00002b40| 20 73 68 6f 75 6c 64 20 | 70 6f 69 6e 74 20 74 6f | should |point to|
|00002b50| 0d 2f 2f 20 61 20 67 6c | 6f 62 61 6c 20 76 61 72 |.// a gl|obal var|
|00002b60| 69 61 62 6c 65 20 6f 66 | 20 74 68 69 73 20 74 79 |iable of| this ty|
|00002b70| 70 65 2e 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |pe..type|def stru|
|00002b80| 63 74 20 7b 0d 09 55 49 | 6e 74 31 36 09 61 70 69 |ct {..UI|nt16.api|
|00002b90| 3b 09 09 09 09 09 2f 2f | 20 41 50 49 20 75 73 65 |;.....//| API use|
|00002ba0| 64 2e 20 53 68 6f 75 6c | 64 20 61 6c 77 61 79 73 |d. Shoul|d always|
|00002bb0| 20 63 6f 6e 74 61 69 6e | 20 56 50 5f 41 50 49 5f | contain| VP_API_|
|00002bc0| 56 45 52 53 49 4f 4e 0d | 09 4f 53 54 79 70 65 09 |VERSION.|.OSType.|
|00002bd0| 74 79 70 65 3b 09 09 09 | 09 09 2f 2f 20 50 6c 75 |type;...|..// Plu|
|00002be0| 67 69 6e 20 74 79 70 65 | 2e 20 53 68 6f 75 6c 64 |gin type|. Should|
|00002bf0| 20 62 65 20 70 6c 75 67 | 56 69 73 75 61 6c 2e 0d | be plug|Visual..|
|00002c00| 09 0d 09 4f 53 54 79 70 | 65 09 61 75 74 68 6f 72 |...OSTyp|e.author|
|00002c10| 49 44 3b 09 09 09 09 2f | 2f 20 41 75 74 68 6f 72 |ID;..../|/ Author|
|00002c20| 20 49 44 20 73 68 6f 75 | 6c 64 20 62 65 20 72 65 | ID shou|ld be re|
|00002c30| 67 69 73 74 65 72 65 64 | 20 77 69 74 68 20 40 73 |gistered| with @s|
|00002c40| 6f 66 74 20 74 6f 20 70 | 72 65 76 65 6e 74 0d 09 |oft to p|revent..|
|00002c50| 09 09 09 09 09 09 09 09 | 2f 2f 20 20 69 6e 63 6f |........|// inco|
|00002c60| 6d 70 61 74 69 62 69 6c | 69 74 69 65 73 2e 20 6d |mpatibil|ities. m|
|00002c70| 61 69 6c 74 6f 3a 64 65 | 76 73 75 70 70 6f 72 74 |ailto:de|vsupport|
|00002c80| 40 61 74 2d 73 6f 66 74 | 2e 6e 65 74 20 6f 72 0d |@at-soft|.net or.|
|00002c90| 09 09 09 09 09 09 09 09 | 09 2f 2f 20 20 6d 61 69 |........|.// mai|
|00002ca0| 6c 74 6f 3a 64 65 76 73 | 75 70 70 6f 72 74 40 6d |lto:devs|upport@m|
|00002cb0| 61 63 61 6d 70 2e 63 6f | 6d 0d 09 4f 53 54 79 70 |acamp.co|m..OSTyp|
|00002cc0| 65 09 70 6c 75 67 69 6e | 49 44 3b 09 09 09 09 2f |e.plugin|ID;..../|
|00002cd0| 2f 20 50 6c 75 67 69 6e | 20 49 44 20 63 61 6e 20 |/ Plugin| ID can |
|00002ce0| 62 65 20 61 6e 79 74 68 | 69 6e 67 20 74 68 65 20 |be anyth|ing the |
|00002cf0| 61 75 74 68 6f 72 20 77 | 69 73 68 65 73 2e 20 49 |author w|ishes. I|
|00002d00| 74 20 69 73 0d 09 09 09 | 09 09 09 09 09 09 2f 2f |t is....|......//|
|00002d10| 20 20 75 73 65 64 20 77 | 69 74 68 20 61 75 74 68 | used w|ith auth|
|00002d20| 6f 72 20 69 64 20 74 6f | 20 73 74 6f 72 65 20 70 |or id to| store p|
|00002d30| 6c 75 67 69 6e 20 70 72 | 65 66 65 72 65 6e 63 65 |lugin pr|eference|
|00002d40| 73 20 65 74 63 0d 09 0d | 09 55 49 6e 74 33 32 09 |s etc...|.UInt32.|
|00002d50| 66 6c 61 67 73 3b 09 09 | 09 09 09 2f 2f 20 50 6c |flags;..|...// Pl|
|00002d60| 75 67 69 6e 20 66 6c 61 | 67 73 0d 09 0d 09 53 74 |ugin fla|gs....St|
|00002d70| 72 32 35 35 09 6e 61 6d | 65 3b 09 09 09 09 09 2f |r255.nam|e;...../|
|00002d80| 2f 20 50 6c 75 67 69 6e | 20 6e 61 6d 65 20 28 64 |/ Plugin| name (d|
|00002d90| 69 73 70 6c 61 79 65 64 | 20 69 6e 20 50 6c 75 67 |isplayed| in Plug|
|00002da0| 69 6e 73 20 6d 65 6e 75 | 29 0d 0d 09 76 69 73 49 |ins menu|)...visI|
|00002db0| 6e 69 74 50 72 6f 63 50 | 74 72 09 09 09 69 6e 69 |nitProcP|tr...ini|
|00002dc0| 74 50 72 6f 63 3b 0d 09 | 76 69 73 47 65 6e 65 72 |tProc;..|visGener|
|00002dd0| 69 63 50 72 6f 63 50 74 | 72 09 09 74 65 72 6d 69 |icProcPt|r..termi|
|00002de0| 6e 61 74 65 50 72 6f 63 | 3b 0d 09 76 69 73 47 65 |nateProc|;..visGe|
|00002df0| 6e 65 72 69 63 50 72 6f | 63 50 74 72 09 09 69 64 |nericPro|cPtr..id|
|00002e00| 6c 65 50 72 6f 63 3b 09 | 09 2f 2f 20 73 65 74 20 |leProc;.|.// set |
|00002e10| 74 6f 20 6e 69 6c 20 69 | 66 20 79 6f 75 20 64 6f |to nil i|f you do|
|00002e20| 6e 27 74 20 77 61 6e 74 | 20 74 6f 20 62 65 20 63 |n't want| to be c|
|00002e30| 61 6c 6c 65 64 20 61 74 | 20 69 64 6c 65 20 74 69 |alled at| idle ti|
|00002e40| 6d 65 0d 09 76 69 73 47 | 65 6e 65 72 69 63 50 72 |me..visG|enericPr|
|00002e50| 6f 63 50 74 72 09 09 61 | 62 6f 75 74 50 72 6f 63 |ocPtr..a|boutProc|
|00002e60| 3b 0d 0d 09 76 69 73 47 | 65 6e 65 72 69 63 50 72 |;...visG|enericPr|
|00002e70| 6f 63 50 74 72 09 09 64 | 72 61 77 50 72 6f 63 3b |ocPtr..d|rawProc;|
|00002e80| 0d 09 76 69 73 43 6c 69 | 63 6b 50 72 6f 63 50 74 |..visCli|ckProcPt|
|00002e90| 72 09 09 09 63 6c 69 63 | 6b 50 72 6f 63 3b 0d 09 |r...clic|kProc;..|
|00002ea0| 0d 09 76 69 73 45 76 65 | 6e 74 50 72 6f 63 50 74 |..visEve|ntProcPt|
|00002eb0| 72 09 09 09 6b 65 79 44 | 6f 77 6e 50 72 6f 63 3b |r...keyD|ownProc;|
|00002ec0| 09 2f 2f 20 73 65 74 20 | 74 6f 20 6e 69 6c 20 69 |.// set |to nil i|
|00002ed0| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 77 61 6e 74 |f you do|n't want|
|00002ee0| 20 6b 65 79 64 6f 77 6e | 73 2e 0d 09 76 69 73 45 | keydown|s...visE|
|00002ef0| 76 65 6e 74 50 72 6f 63 | 50 74 72 09 09 09 6d 61 |ventProc|Ptr...ma|
|00002f00| 63 45 76 65 6e 74 50 72 | 6f 63 3b 09 2f 2f 20 73 |cEventPr|oc;.// s|
|00002f10| 65 74 20 74 6f 20 6e 69 | 6c 20 69 66 20 79 6f 75 |et to ni|l if you|
|00002f20| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 74 6f 20 68 | don't w|ant to h|
|00002f30| 61 6e 64 6c 65 20 75 70 | 64 61 74 65 2f 63 6c 69 |andle up|date/cli|
|00002f40| 63 6b 20 65 76 65 6e 74 | 73 20 6d 61 6e 75 61 6c |ck event|s manual|
|00002f50| 6c 79 2e 0d 09 0d 09 76 | 69 73 45 72 72 6f 72 50 |ly.....v|isErrorP|
|00002f60| 72 6f 63 50 74 72 09 09 | 09 65 72 72 6f 72 50 72 |rocPtr..|.errorPr|
|00002f70| 6f 63 3b 0d 09 76 69 73 | 47 65 6e 65 72 69 63 50 |oc;..vis|GenericP|
|00002f80| 72 6f 63 50 74 72 09 09 | 73 65 74 74 69 6e 67 73 |rocPtr..|settings|
|00002f90| 50 72 6f 63 3b 09 2f 2f | 20 73 65 74 20 74 6f 20 |Proc;.//| set to |
|00002fa0| 6e 69 6c 20 69 66 20 79 | 6f 75 20 64 6f 6e 27 74 |nil if y|ou don't|
|00002fb0| 20 77 61 6e 74 20 74 6f | 20 62 65 20 64 69 73 70 | want to| be disp|
|00002fc0| 6c 61 79 65 64 20 69 6e | 20 73 65 74 74 69 6e 67 |layed in| setting|
|00002fd0| 73 20 73 75 62 6d 65 6e | 75 0d 09 76 69 73 47 65 |s submen|u..visGe|
|00002fe0| 6e 65 72 69 63 50 72 6f | 63 50 74 72 09 09 74 72 |nericPro|cPtr..tr|
|00002ff0| 61 63 6b 42 65 67 69 6e | 50 72 6f 63 3b 0d 09 76 |ackBegin|Proc;..v|
|00003000| 69 73 47 65 6e 65 72 69 | 63 50 72 6f 63 50 74 72 |isGeneri|cProcPtr|
|00003010| 09 09 74 72 61 63 6b 45 | 6e 64 50 72 6f 63 3b 0d |..trackE|ndProc;.|
|00003020| 09 0d 09 2f 2f 20 53 65 | 74 20 74 68 65 73 65 20 |...// Se|t these |
|00003030| 74 6f 20 6e 69 6c 2e 20 | 54 68 65 79 20 61 72 65 |to nil. |They are|
|00003040| 20 72 65 73 65 72 76 65 | 64 20 66 6f 72 20 66 75 | reserve|d for fu|
|00003050| 74 75 72 65 20 65 78 70 | 61 6e 73 69 6f 6e 2e 0d |ture exp|ansion..|
|00003060| 09 76 69 73 47 65 6e 65 | 72 69 63 50 72 6f 63 50 |.visGene|ricProcP|
|00003070| 74 72 09 09 72 65 73 65 | 72 76 65 64 50 72 6f 63 |tr..rese|rvedProc|
|00003080| 31 3b 0d 09 76 69 73 47 | 65 6e 65 72 69 63 50 72 |1;..visG|enericPr|
|00003090| 6f 63 50 74 72 09 09 72 | 65 73 65 72 76 65 64 50 |ocPtr..r|eservedP|
|000030a0| 72 6f 63 32 3b 0d 09 76 | 69 73 47 65 6e 65 72 69 |roc2;..v|isGeneri|
|000030b0| 63 50 72 6f 63 50 74 72 | 09 09 72 65 73 65 72 76 |cProcPtr|..reserv|
|000030c0| 65 64 50 72 6f 63 33 3b | 0d 09 76 69 73 47 65 6e |edProc3;|..visGen|
|000030d0| 65 72 69 63 50 72 6f 63 | 50 74 72 09 09 72 65 73 |ericProc|Ptr..res|
|000030e0| 65 72 76 65 64 50 72 6f | 63 34 3b 0d 09 09 0d 09 |ervedPro|c4;.....|
|000030f0| 2f 2f 20 53 70 65 63 69 | 61 6c 20 41 50 49 73 20 |// Speci|al APIs |
|00003100| 28 53 65 74 20 74 6f 20 | 6e 69 6c 2c 20 4d 61 63 |(Set to |nil, Mac|
|00003110| 41 4d 50 20 77 69 6c 6c | 20 73 65 74 20 69 74 20 |AMP will| set it |
|00003120| 74 6f 20 74 68 65 20 72 | 69 67 68 74 20 76 61 6c |to the r|ight val|
|00003130| 75 65 29 0d 09 56 50 43 | 61 6c 6c 62 61 63 6b 73 |ue)..VPC|allbacks|
|00003140| 50 74 72 09 09 09 09 6d | 61 3b 0d 7d 20 56 50 49 |Ptr....m|a;.} VPI|
|00003150| 6e 66 6f 42 6c 6f 63 6b | 2c 20 2a 56 50 49 6e 66 |nfoBlock|, *VPInf|
|00003160| 6f 50 74 72 3b 0d 23 70 | 72 61 67 6d 61 20 6f 70 |oPtr;.#p|ragma op|
|00003170| 74 69 6f 6e 73 20 61 6c | 69 67 6e 3d 72 65 73 65 |tions al|ign=rese|
|00003180| 74 0d 0d 23 69 66 64 65 | 66 20 5f 5f 63 70 6c 75 |t..#ifde|f __cplu|
|00003190| 73 70 6c 75 73 0d 7d 0d | 23 65 6e 64 69 66 0d 00 |splus.}.|#endif..|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 03 | 00 04 00 2c 00 09 02 40 |........|...,...@|
|00003330| 02 5f 00 2c 00 09 02 40 | 02 5f b3 b1 5b 6d 00 00 |._.,...@|._..[m..|
|00003340| 14 dc 00 00 14 e5 00 00 | 28 d0 01 00 00 00 00 04 |........|(.......|
|00003350| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00003360| 00 00 00 46 05 c8 39 84 | 18 fa 00 00 00 1c 00 46 |...F..9.|.......F|
|00003370| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00003380| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00003390| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+