summaryrefslogtreecommitdiff
path: root/mpa-frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpa-frame.h')
-rw-r--r--mpa-frame.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/mpa-frame.h b/mpa-frame.h
new file mode 100644
index 0000000..7f4c4ef
--- /dev/null
+++ b/mpa-frame.h
@@ -0,0 +1,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 */