summaryrefslogtreecommitdiff
path: root/mpa-frame.h
blob: 7f4c4ef74ad41fc5449af3eb8b27476cd204c4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * mpa-frame.h
 */

#ifndef __MPA_FRAME__H
#define __MPA_FRAME__H

#include "a-tools.h"


typedef struct mpeg_audio_frame {
        uchar *data;
        int length;
        int bit_rate;
        int sample_rate;
        int channels;
} mpeg_audio_frame;

extern const int bit_rates[];

void get_mpa_frame(abuffer *buf, mpeg_audio_frame *mpa_frame,
        const char *description);

#endif /* __MPA_FRAME_H */