-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioCodec.h
599 lines (498 loc) · 25.8 KB
/
AudioCodec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
/* Copyright: © Copyright 2003 Apple Computer, Inc. All rights reserved.
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modification or redistribution of this Apple software
constitutes acceptance of these terms. If you do not agree with these terms,
please do not use, install, modify or redistribute this Apple software.
In consideration of your agreement to abide by the following terms, and subject
to these terms, Apple grants you a personal, non-exclusive license, under AppleÕs
copyrights in this original Apple software (the "Apple Software"), to use,
reproduce, modify and redistribute the Apple Software, with or without
modifications, in source and/or binary forms; provided that if you redistribute
the Apple Software in its entirety and without modifications, you must retain
this notice and the following text and disclaimers in all such redistributions of
the Apple Software. Neither the name, trademarks, service marks or logos of
Apple Computer, Inc. may be used to endorse or promote products derived from the
Apple Software without specific prior written permission from Apple. Except as
expressly stated in this notice, no other rights or licenses, express or implied,
are granted by Apple herein, including but not limited to any patent rights that
may be infringed by your derivative works or by other works in which the Apple
Software may be incorporated.
The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
COMBINATION WITH YOUR PRODUCTS.
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
(INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
File: AudioToolbox/AudioCodec.h
Contains: A component API for encoding/decoding audio data.
Version: Technology: Mac OS X
Release: Mac OS X
Copyright: (c) 1985-2002 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#if !defined(__AudioCodec_h__)
#define __AudioCodec_h__
//=============================================================================
// Includes
//=============================================================================
#include <TargetConditionals.h>
#if TARGET_OS_MAC && TARGET_RT_MAC_MACHO
#include <CoreServices/CoreServices.h>
#include <CoreAudio/CoreAudioTypes.h>
#else
#include "Components.h"
#include "CoreAudioTypes.h"
#endif
#if defined(__cplusplus)
extern "C"
{
#endif
//=============================================================================
// Theory of Operation
//
// AudioCodec components translate audio data from one format to another. There
// are three kinds of AudioCodec components. Decoder components translate data
// that isn't in linear PCM into linear PCM formatted data. Encoder components
// translate linear PCM data into some other format. Unity codecs translates
// between different flavors of the same type (for instance 16 bit signed
// integer linear PCM into 32 bit floating point linear PCM).
//
// <how to find AudioCodecs yet to be determined>
//
// Once an AudioCodec is found that implements the translation in question,
// it has to be set up to do the translation. This can be done by setting the
// appropriate properties or by calling AudioCodecInitialize. If the translation
// is specified by properties, AudioCodecInitialize still needs to be called
// prior to appending input data or producing output data.
//
// AudioCodecInitialize puts the codec into the "initialized" state. In this state,
// the format information for the translation cannot be changed. The codec
// has to be in the initialized state for AudioCodecAppendInputData and
// AudioCodecProduceOutputData to work. They will return kAudioCodecStateError
// if the codec isn't initialized.
//
// AudioCodecUninitialize will return the codec to the uninitialized state and
// release any allocated resources. It may then be configured freely. It is not
// necessary to call AudioCodecUninitialize prior to closing the codec.
//
// Once in the initialized state, the codec is ready to receive input and produce
// output using the AudioCodecAppendInputData and AudioCodecProduceOutputData
// routines. Input data can be fed into a codec in any size (even byte by byte),
// but output data can only be produced in whole packet sizes. Both routines
// will return the amount of data they consume/produce.
//
// AudioCodecProduceOutputData also returns a status code to the caller that
// indicates the result of the operation (success or failure) as well as the
// state of the input buffer.
//=============================================================================
//=============================================================================
// Issues for Discussion
//
// - Finding these guys hasn't been addressed yet. When it is, one must
// keep in mind the fact that multiple codecs may perform the same
// translation so being able to differentiate between them by something
// other than type and subtype is important.
//
// - Should there be standard properties for the important configuration
// things, like bit rate, profile, etc. that aren't covered in an
// AudioStreamBasicDescription? If so what are they and what do they
// look like. If there were standared properties for this stuff, then
// it would be possible to create a standard UI for the majority of
// the codecs out there which would greatly simplify the process of
// creating an AudioCodec component.
//
// - UI for configuring a codec. Because of the way things are layered
// on X, it is highly desireable to not include any UI code in the
// AudioCodec component. But, it is also desireable to allow the codec
// the opportunity to present it's own UI for configuration. In fact,
// this is how QT works with codecs now. AudioUnits have the exact same
// problem, so likely the solution here is similar to the solution
// being worked on for AudioUnits.
//
// -
//=============================================================================
//=============================================================================
// Types specific to AudioCodecs
//=============================================================================
typedef ComponentInstance AudioCodec;
typedef UInt32 AudioCodecPropertyID;
struct AudioStreamLoudnessStatistics
{
Float64 mAveragePerceivedPowerCoefficient; // normalized from 0-1
Float64 mMaximumPerceivedPowerCoefficient; // normalized from 0-1
UInt64 mMaximumPerceivedPowerPacketOffset; // the packet that contains the maximum coefficient
Float32 mPeakAmplitude; // the absolute peak sample value
UInt32 mReserved; // padding
UInt64 mPeakAmplitudeSampleOffset; // the sample number of the absolute peak sample
};
typedef struct AudioStreamLoudnessStatistics AudioStreamLoudnessStatistics;
//=============================================================================
// AudioCodec Component Constants
//=============================================================================
enum
{
kAudioDecoderComponentType = 'adec',
// A codec that translates data in some other format into linear PCM
// The component subtype specifies the format ID of the other format
kAudioEncoderComponentType = 'aenc',
// A codec that translates linear PCM data into some other format
// The component subtype specifies the format ID of the other format
kAudioUnityCodecComponentType = 'acdc'
// A codec that translates between different flavors of the same format
// The component subtype specifies the format ID of this format.
};
//=============================================================================
// Standard Codec Properties
//
// Used with the AudioCodecXXXXPropertyXXXX family of routines.
//=============================================================================
enum
{
kAudioCodecPropertyNameCFString = 'lnam',
// the name of the codec's format as a CFStringRef. The CFStringRef
// retrieved via this property must be released by the caller.
kAudioCodecPropertyManufacturerCFString = 'lmak',
// the manufacturer of the codec as a CFStringRef. The CFStringRef
// retrieved via this property must be released by the caller.
kAudioCodecPropertyRequiresPacketDescription = 'pakd',
// A UInt32 where a non-zero value indicates that the format the codec implements
// requires that an AudioStreamPacketDescription array must be supplied with any data
// in that format. Note that this implies that data must also be handled strictly in
// packets. For a decoder, this applies to input data. For an encoder, it appies to
// output data.
kAudioCodecPropertyPacketFrameSize = 'pakf',
// A UInt32 indicating the number of frames of audio data in each
// packet of data in the codec's format will be. For encoders, this is the
// input format. For decoders this is the output format.
// Note that this property can only be queried when the codec is initialized.
kAudioCodecPropertyHasVariablePacketByteSizes = 'vpk?',
// A UInt32 where 0 indicates that all packets in the codec's format
// have the same byte size and 1 indicates that they vary in size (up
// to the maximum size indicated in kAudioCodecPropertyMaximumPacketByteSize).
kAudioCodecPropertyMaximumPacketByteSize = 'pakb',
// A UInt32 indicating the maximum number of bytes a packet of data
// in the codec's format will be. If the format is constant bit rate,
// all packets will be this size. If it is variable bit rate, the packets
// won't ever be any larger than this size.
// This always refers to the encoded data, so for encoders it refers to the
// output data and for decoders the input data.
// Note that this property can only be queried when the codec is initialized.
kAudioCodecPropertyCurrentInputFormat = 'ifmt',
// An AudioStreamBasicDescription describing the format the codec
// expects it's input data in
kAudioCodecPropertySupportedInputFormats = 'ifm#',
// An array of the AudioStreamBasicDescription's the codec supports
// for input data
kAudioCodecPropertyCurrentOutputFormat = 'ofmt',
// An AudioStreamBasicDescription describing the format the codec
// provides it's output data in
kAudioCodecPropertySupportedOutputFormats = 'ofm#',
// An array of the AudioStreamBasicDescription's the codec supports
// for output data
kAudioCodecPropertyMagicCookie = 'kuki',
// An untyped buffer of out of band configuration data the codec
// requires to process the stream of data correctly. The contents
// of this data is private to the codec. Not all codecs have magic
// cookies.
kAudioCodecPropertyInputBufferSize = 'tbuf',
// A UInt32 indicating the maximum input buffering size for the codec
// in bytes
kAudioCodecPropertyUsedInputBufferSize = 'ubuf',
// A UInt32 indicating the number of bytes in the codec's input
// buffer that are already in use
kAudioCodecPropertyIsInitialized = 'init',
// A UInt32 where 0 means the codec is uninitialized and anything
// else means the codec is initialized.
kAudioCodecPropertyCurrentTargetBitRate = 'brat',
// A UInt32 containing the number of bits per second to aim
// for when encoding data. This property is only relevant to
// encoders.
kAudioCodecPropertyAvailableBitRates = 'brt#',
// An array of UInt32's that indicate the target bit rates
// supported by the encoder. This property is only relevant to
// encoders.
// Deprecated. Replaced with kAudioCodecPropertyAvailableBitRateRange
kAudioCodecPropertyCurrentInputSampleRate = 'cisr',
// A Float64 containing current input sample rate in Hz.
kAudioCodecPropertyCurrentOutputSampleRate = 'cosr',
// A Float64 containing current output sample rate in Hz.
kAudioCodecPropertyAvailableInputSampleRates = 'aisr',
// An array of AudioValueRange indicating the valid ranges for the
// input sample rate of the codec.
kAudioCodecPropertyAvailableOutputSampleRates = 'aosr',
// An array of AudioValueRange indicating the valid ranges for the
// output sample rate of the codec.
kAudioCodecPropertyQualitySetting = 'srcq',
// "Some Relative Codec Quality"
//
// A UInt32 that specifies the relative quality of a codec.
// (see enum constants below)
kAudioCodecPropertyCurrentLoudnessStatistics = 'loud',
// An array of AudioStreamLoudnessStatistics structs that provides statistics about
// the loudness of each channel in the stream of data being processed by the codec.
// Note that this property can only be queried when the codec is initialized
// and until data is actually moved through it the values will all be defaults.
kAudioCodecPropertyAvailableBitRateRange = 'abrt',
// An array of AudioValueRange that indicate the target bit rates
// supported by the encoder.
// This property is only relevant to encoders.
kAudioCodecPropertyApplicableBitRateRange = 'brta',
// An array of AudioValueRange indicating the target bit rates
// supported by the encoder in its current configuration.
// This property is only relevant to encoders.
kAudioCodecPropertyApplicableInputSampleRates = 'isra',
// An array of AudioValueRange indicating the valid ranges for the
// input sample rate of the codec for the current bit rate.
kAudioCodecPropertyApplicableOutputSampleRates = 'osra',
// An array of AudioValueRange indicating the valid ranges for the
// output sample rate of the codec for the current bit rate.
kAudioCodecPropertyMinimumNumberInputPackets = 'mnip',
// A UInt32 indicating the minimum number of input packets
// that need to be supplied to the codec. The actual input the
// codec accepts could be less than this.
// For most codecs this value will be 1.
kAudioCodecPropertyMinimumNumberOutputPackets = 'mnop',
// A UInt32 indicating the minimum number of output packets
// that need to be handled from the codec. The actual output
// might be less than this.
// For most codecs this value will be 1.
kAudioCodecPropertyZeroFramesPadded = 'pad0',
// A UInt32 indicating the number of zeroes (samples) that were appended
// to the last packet of input data to mae a complete packet encoding.
kAudioCodecPropertyAvailableNumberChannels = 'cmnc',
// An array of UInt32 that specifies the number of channels the codec is capable of encoding to.
// 0xFFFFFFFF means any number of channels.
kAudioCodecPropertyPrimeMethod = 'prmm',
// a UInt32 specifying priming method.
// see explanation for struct AudioCodecPrimeInfo below along with enum constants
kAudioCodecPropertyPrimeInfo = 'prim',
// A pointer to AudioCodecPrimeInfo
kAudioCodecDoesSampleRateConversion = 'lmrc',
// a UInt32 indicating if the codec wants to do a sample rate conversion (if
// necessary) because it can do it in a way that is meaningful for quality.
// Value is 1 if true, 0 otherwise.
kAudioCodecPropertyInputChannelLayout = 'icl ',
// An AudioChannelLayout that specifies the channel layout that the codec is using for input.
// Settable on encoders.
kAudioCodecPropertyOutputChannelLayout = 'ocl ',
// An AudioChannelLayout that specifies the channel layout that the codec is using for output.
// If settable on a encoder, it means the encoder can re-map channels
kAudioCodecPropertyAvailableInputChannelLayouts = 'aicl',
// An array of AudioChannelLayoutTags that specifies what channel layouts the codec is
// capable of using on input.
kAudioCodecPropertyAvailableOutputChannelLayouts = 'aocl'
// An array of AudioChannelLayoutTags that specifies what channel layouts the codec is
// capable of using on output.
};
// constants to be used with kAudioCodecPropertyQualitySetting
enum
{
kAudioCodecQuality_Max = 0x7F,
kAudioCodecQuality_High = 0x60,
kAudioCodecQuality_Medium = 0x40,
kAudioCodecQuality_Low = 0x20,
kAudioCodecQuality_Min = 0
};
// constants to be used with kAudioCodecPrimeMethod
enum
{
kAudioCodecPrimeMethod_Pre = 0, // primes with leading + trailing input frames
kAudioCodecPrimeMethod_Normal = 1, // only primes with trailing (zero latency)
// leading frames are assumed to be silence
kAudioCodecPrimeMethod_None = 2 // acts in "latency" mode
// both leading and trailing frames assumed to be silence
};
typedef struct AudioCodecPrimeInfo {
UInt32 leadingFrames;
UInt32 trailingFrames;
} AudioCodecPrimeInfo;
//=============================================================================
// Status values returned from the AudioCodecProduceOutputPacket routine
//=============================================================================
enum
{
kAudioCodecProduceOutputPacketFailure = 1,
// Couldn't complete the request due to an error. It is possible
// that some output data was produced. This is reflected in the value
// returned in ioNumberPackets.
kAudioCodecProduceOutputPacketSuccess = 2,
// The number of requested output packets was produced without incident
// and there isn't any more input data to process
kAudioCodecProduceOutputPacketSuccessHasMore = 3,
// The number of requested output packets was produced and there is
// enough input data to produce at least one more packet of output data
kAudioCodecProduceOutputPacketNeedsMoreInputData = 4,
// There was insufficient input data to produce the requested
// number of output packets, The value returned in ioNumberPackets
// holds the number of output packets produced.
kAudioCodecProduceOutputPacketAtEOF = 5
// The end-of-file marker was hit during the processing. Fewer
// than the requested number of output packets may have been
// produced. Check the value returned in ioNumberPackets for the
// actual number produced. Note that not all formats have EOF
// markers in them.
};
//=============================================================================
// Selectors for the component routines (preliminary)
//=============================================================================
enum
{
kAudioCodecGetPropertyInfoSelect = 0x0001,
kAudioCodecGetPropertySelect = 0x0002,
kAudioCodecSetPropertySelect = 0x0003,
kAudioCodecInitializeSelect = 0x0004,
kAudioCodecUninitializeSelect = 0x0005,
kAudioCodecAppendInputDataSelect = 0x0006,
kAudioCodecProduceOutputDataSelect = 0x0007,
kAudioCodecResetSelect = 0x0008
};
//=============================================================================
// Errors
//=============================================================================
enum
{
kAudioCodecNoError = 0,
kAudioCodecUnspecifiedError = 'what',
kAudioCodecUnknownPropertyError = 'who?',
kAudioCodecBadPropertySizeError = '!siz',
kAudioCodecIllegalOperationError = 'nope',
kAudioCodecUnsupportedFormatError = '!dat',
kAudioCodecStateError = '!stt',
kAudioCodecNotEnoughBufferSpaceError = '!buf'
};
//=============================================================================
// Codec Property Management
//=============================================================================
//-----------------------------------------------------------------------------
// AudioCodecGetPropertyInfo
//
// Retrieve information about the given property. The outSize argument
// will return the size in bytes of the current value of the property.
// The outWritable argument will return whether or not the property
// in question can be changed.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecGetPropertyInfo( AudioCodec inCodec,
AudioCodecPropertyID inPropertyID,
UInt32* outSize,
Boolean* outWritable);
//-----------------------------------------------------------------------------
// AudioCodecGetProperty
//
// Retrieve the indicated property data. On input, ioDataSize has the size
// of the data pointed to by outPropertyData. On output, ioDataSize will contain
// the amount written.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecGetProperty( AudioCodec inCodec,
AudioCodecPropertyID inPropertyID,
UInt32* ioPropertyDataSize,
void* outPropertyData);
//-----------------------------------------------------------------------------
// AudioCodecSetProperty
//
// Set the indicated property data.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecSetProperty( AudioCodec inCodec,
AudioCodecPropertyID inPropertyID,
UInt32 inPropertyDataSize,
const void* inPropertyData);
//=============================================================================
// Codec Data Handling Routines
//=============================================================================
//-----------------------------------------------------------------------------
// AudioCodecInitialize
//
// This call will allocate any buffers needed and otherwise set the codec
// up to perform the indicated translation. If an argument is NULL, any
// previously set proeprties will be used for preparing the codec for work.
// Note that this routine will also validate the format information as useable.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecInitialize( AudioCodec inCodec,
const AudioStreamBasicDescription* inInputFormat,
const AudioStreamBasicDescription* inOutputFormat,
const void* inMagicCookie,
UInt32 inMagicCookieByteSize);
//-----------------------------------------------------------------------------
// AudioCodecUninitialize
//
// This call will move the codec from the initialized state back to the
// uninitialized state. The codec will release any resources it allocated
// or claimed in AudioCodecInitialize.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecUninitialize(AudioCodec inCodec);
//-----------------------------------------------------------------------------
// AudioCodecAppendInputData
//
// Append as much of the given data to the codec's input buffer as possible
// and return in ioInputDataByteSize the amount of data used. Note that the
// data is copied from the input buffer to the codec's internal buffers.
//
// The inPacketDescription argument is an array of AudioStreamPacketDescription
// structs that describes the packet layout returned in outOutputData. The number
// of elements in this array is indicated on input by ioNumberPackets.
//
// Note that inPacketDescription and ioNumberPackets need only be filled out
// if the value of kAudioCodecPropertyRequiresPacketDescription is non-zero.
// Note also in this case that it is an error to supply less than a full packet
// of data at a time.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecAppendInputData( AudioCodec inCodec,
const void* inInputData,
UInt32* ioInputDataByteSize,
UInt32* ioNumberPackets,
const AudioStreamPacketDescription* inPacketDescription);
//-----------------------------------------------------------------------------
// AudioCodecProduceOutputPackets
//
// Produce as many output packets as requested and the amount of input data
// allows for. The outStatus argument returns information about the codec's
// status to allow for proper data management. See the constants above for
// the possible values that can be returned.
//
// The outPacketDescription argument is an array of AudioStreamPacketDescription
// structs that describes the packet layout returned in outOutputData. This
// argument is optional. Pass NULL if this information is not to be returned.
// Note that this information is only provided when the output format isn't
// linear PCM.
//
// Note that decoders will always only produce linear PCM data in multiples of
// the number frames in a packet of the encoded format (as returned by
// kAudioCodecPropertyPacketFrameSize). Encoders will consume this many frames
// of linear PCM data to produce a packet of their format.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecProduceOutputPackets( AudioCodec inCodec,
void* outOutputData,
UInt32* ioOutputDataByteSize,
UInt32* ioNumberPackets,
AudioStreamPacketDescription* outPacketDescription,
UInt32* outStatus);
//-----------------------------------------------------------------------------
// AudioCodecReset
//
// Flushes all the data in the codec and clears the input buffer. Note that
// the formats, and magic cookie will be retained so they won't need to be
// set up again to decode the same data.
//-----------------------------------------------------------------------------
EXTERN_API(ComponentResult)
AudioCodecReset(AudioCodec inCodec);
#if defined(__cplusplus)
}
#endif
#endif