* Written by Shaun Jackman <sjackman@gmail.com>
* Copyright 2007 Shaun Jackman
*
- * $Id$
- *
* Wiretap Library
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
#ifndef MPA_H
#define MPA_H 1
+#include "ws_symbol_export.h"
+
struct mpa {
unsigned int emphasis :2;
unsigned int original :1;
unsigned int copyright :1;
unsigned int modeext :2;
unsigned int mode :2;
- unsigned int private :1;
+ unsigned int priv :1;
unsigned int padding :1;
unsigned int frequency :2;
unsigned int bitrate :4;
(mpa)->bitrate = MPA_UNMARSHAL_BITRATE(n); \
(mpa)->frequency = MPA_UNMARSHAL_FREQUENCY(n); \
(mpa)->padding = MPA_UNMARSHAL_PADDING(n); \
- (mpa)->private = MPA_UNMARSHAL_PRIVATE(n); \
+ (mpa)->priv = MPA_UNMARSHAL_PRIVATE(n); \
(mpa)->mode = MPA_UNMARSHAL_MODE(n); \
(mpa)->modeext = MPA_UNMARSHAL_MODEEXT(n); \
(mpa)->copyright = MPA_UNMARSHAL_COPYRIGHT(n); \
(mpa)->emphasis = MPA_UNMARSHAL_EMPHASIS(n); \
} while (0)
+WS_DLL_PUBLIC
int mpa_version(const struct mpa *);
+WS_DLL_PUBLIC
int mpa_layer(const struct mpa *);
+WS_DLL_PUBLIC
unsigned int mpa_samples(const struct mpa *);
+WS_DLL_PUBLIC
unsigned int mpa_bitrate(const struct mpa *);
+WS_DLL_PUBLIC
unsigned int mpa_frequency(const struct mpa *);
+WS_DLL_PUBLIC
unsigned int mpa_padding(const struct mpa *);
#define MPA_DATA_BYTES(mpa) (mpa_bitrate(mpa) * mpa_samples(mpa) \