]> gitweb @ CieloNegro.org - bindings-CarbonCore.git/blob - Bindings/CoreServices/CarbonCore/AIFF.hsc
Use #integral_t whenever possible
[bindings-CarbonCore.git] / Bindings / CoreServices / CarbonCore / AIFF.hsc
1 #include <bindings.dsl.h>
2 #include <CoreServices/CoreServices.h>
3
4 module Bindings.CoreServices.CarbonCore.AIFF where
5 #strict_import
6 import Bindings.CoreServices.CarbonCore.MacTypes
7
8 #num AIFFID
9 #num AIFCID
10 #num FormatVersionID
11 #num CommonID
12 #num FORMID
13 #num SoundDataID
14 #num MarkerID
15 #num InstrumentID
16 #num MIDIDataID
17 #num AudioRecordingID
18 #num ApplicationSpecificID
19 #num CommentID
20 #num NameID
21 #num AuthorID
22 #num CopyrightID
23 #num AnnotationID
24
25 #num NoLooping
26 #num ForwardLooping
27 #num ForwardBackwardLooping
28
29 #num AIFCVersion1
30
31 #globalarray NoneName    , CUChar
32 #globalarray ACE2to1Name , CUChar
33 #globalarray ACE8to3Name , CUChar
34 #globalarray MACE3to1Name, CUChar
35 #globalarray MACE6to1Name, CUChar
36
37 #num NoneType
38 #num ACE2Type
39 #num ACE8Type
40 #num MACE3Type
41 #num MACE6Type
42
43 #integral_t ID
44 #integral_t MarkerIdType
45
46 #starttype struct ChunkHeader
47 #  field ckID  , <ID>
48 #  field ckSize, <SInt16>
49 #stoptype
50
51 #starttype struct ContainerChunk
52 #  field ckID    , <ID>
53 #  field ckSize  , <SInt32>
54 #  field formType, <ID>
55 #stoptype
56
57 #starttype struct FormatVersionChunk
58 #  field ckID     , <ID>
59 #  field ckSize   , <SInt32>
60 #  field timestamp, <UInt32>
61 #stoptype
62 #synonym_t FormatVersionChunkPtr, Ptr <FormatVersionChunk>
63
64 #starttype struct CommonChunk
65 #  field ckID           , <ID>
66 #  field ckSize         , <SInt32>
67 #  field numChannels    , <SInt16>
68 #  field numSampleFrames, <UInt32>
69 #  field sampleSize     , <SInt16>
70 #  field sampleRate     , <extended80>
71 #stoptype
72 #synonym_t CommonChunkPtr, Ptr <CommonChunk>
73
74 #starttype struct ExtCommonChunk
75 #  field ckID           , <ID>
76 #  field ckSize         , <SInt32>
77 #  field numChannels    , <SInt16>
78 #  field numSampleFrames, <UInt32>
79 #  field sampleSize     , <SInt16>
80 #  field sampleRate     , <extended80>
81 #  field compressionType, <ID>
82 #  flexible_array_member compressionName, CChar
83 #stoptype
84 #synonym_t ExtCommonChunkPtr, Ptr <ExtCommonChunk>
85
86 #starttype struct SoundDataChunk
87 #  field ckID     , <ID>
88 #  field ckSize   , <SInt32>
89 #  field offset   , <UInt32>
90 #  field blockSize, <UInt32>
91 #stoptype
92 #synonym_t SoundDataChunkPtr, Ptr <SoundDataChunk>
93
94 #starttype struct Marker
95 #  field id        , <MarkerIdType>
96 #  field position  , <UInt32>
97 #  field markerName, <Str255>
98 #stoptype
99
100 #starttype struct MarkerChunk
101 #  field ckID      , <ID>
102 #  field ckSize    , <SInt32>
103 #  field numMarkers, <UInt16>
104 #  flexible_array_member Markers, <Marker>
105 #stoptype
106 #synonym_t MarkerChunkPtr, Ptr <MarkerChunk>
107
108 #starttype struct AIFFLoop
109 #  field playMode , <SInt16>
110 #  field beginLoop, <MarkerIdType>
111 #  field endLoop  , <MarkerIdType>
112 #stoptype
113
114 #starttype struct InstrumentChunk
115 #  field ckID         , <ID>
116 #  field ckSize       , <SInt32>
117 #  field baseFrequency, <UInt8>
118 #  field detune       , <UInt8>
119 #  field lowFrequency , <UInt8>
120 #  field highFrequency, <UInt8>
121 #  field lowVelocity  , <UInt8>
122 #  field highVelocity , <UInt8>
123 #  field gain         , <SInt16>
124 #  field sustainLoop  , <AIFFLoop>
125 #  field releaseLoop  , <AIFFLoop>
126 #stoptype
127 #synonym_t InstrumentChunkPtr, Ptr <InstrumentChunk>
128
129 #starttype struct MIDIDataChunk
130 #  field ckID  , <ID>
131 #  field ckSize, <SInt32>
132 #  flexible_array_member MIDIdata, <UInt8>
133 #stoptype
134 #synonym_t MIDIDataChunkPtr, Ptr <MIDIDataChunk>
135
136 #starttype struct AudioRecordingChunk
137 #  field ckID  , <ID>
138 #  field ckSize, <SInt32>
139 #  array_field AESChannelStatus, <UInt8>
140 #stoptype
141 #synonym_t AudioRecordingChunkPtr, Ptr <AudioRecordingChunk>
142
143 #starttype struct ApplicationSpecificChunk
144 #  field ckID  , <ID>
145 #  field ckSize, <SInt32>
146 #  field applicationSignature, <OSType>
147 #  flexible_array_member data, <UInt8>
148 #stoptype
149 #synonym_t ApplicationSpecificChunkPtr, Ptr <ApplicationSpecificChunk>
150
151 #starttype struct Comment
152 #  field timeStamp, <UInt32>
153 #  field marker   , <MarkerIdType>
154 #  field count    , <UInt16>
155 #  flexible_array_member text, CChar
156 #stoptype
157
158 #starttype struct CommentsChunk
159 #  field ckID  , <ID>
160 #  field ckSize, <SInt32>
161 #  field numComments, <UInt16>
162 #  flexible_array_member comments, <Comment>
163 #stoptype
164 #synonym_t CommentsChunkPtr, Ptr <CommentsChunk>
165
166 #starttype struct TextChunk
167 #  field ckID  , <ID>
168 #  field ckSize, <SInt32>
169 #  flexible_array_member text, CChar
170 #stoptype
171 #synonym_t TextChunkPtr, Ptr <TextChunk>