-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQBiLBCDecoder.h
More file actions
29 lines (20 loc) · 796 Bytes
/
Copy pathQBiLBCDecoder.h
File metadata and controls
29 lines (20 loc) · 796 Bytes
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
#ifndef AACELD_DECODER_H
#define AACELD_DECODER_H
#include "QBiLBCEncoder.h"
/* Opaque structure to keep the internal decoder state. */
typedef struct QBiLBCDecoder_ QBiLBCDecoder;
/* Structure to keep the decoder configuration */
typedef struct QBDecoderProperties_
{
Float64 samplingRate;
UInt32 frameSize;
} QBDecoderProperties;
/* Create a new iLBC ddecoder */
QBiLBCDecoder* CreateiLBCDecoder();
/* Initialize the decoder */
int InitiLBCDecoder(QBiLBCDecoder *decoder, QBDecoderProperties props);
/* Decode one AAC-ELD AU to one LPCM frame (512 samples) */
int DecodeiLBC(QBiLBCDecoder *decoder, AudioBuffer *inData, AudioBuffer *outSamples);
/* Destroy the decoder and free associated memory */
void DestroyiLBCDecoder(QBiLBCDecoder *decoder);
#endif /* AACELD_DECODER_H */