sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
mad.h File Reference

Go to the source code of this file.

Classes

struct  mad_bitptr
struct  mad_timer_t
struct  mad_stream
struct  mad_header
struct  mad_frame
struct  mad_pcm
struct  mad_synth
struct  mad_decoder

Macros

#define FPM_INTEL
#define SIZEOF_INT   4
#define SIZEOF_LONG   4
#define SIZEOF_LONG_LONG   8
#define LIBMAD_VERSION_H
#define MAD_VERSION_MAJOR   0
#define MAD_VERSION_MINOR   15
#define MAD_VERSION_PATCH   1
#define MAD_VERSION_EXTRA   " (beta)"
#define MAD_VERSION_STRINGIZE(str)
#define MAD_VERSION_STRING(num)
#define MAD_VERSION
#define MAD_PUBLISHYEAR   "2000-2004"
#define MAD_AUTHOR   "Underbit Technologies, Inc."
#define MAD_EMAIL   "info@underbit.com"
#define LIBMAD_FIXED_H
#define mad_fixed64_t   signed long long
#define MAD_F_FRACBITS   28
#define MAD_F(x)
#define MAD_F_MIN   ((mad_fixed_t) -0x80000000L)
#define MAD_F_MAX   ((mad_fixed_t) +0x7fffffffL)
#define MAD_F_ONE   MAD_F(0x10000000)
#define mad_f_tofixed(x)
#define mad_f_todouble(x)
#define mad_f_intpart(x)
#define mad_f_fracpart(x)
#define mad_f_fromint(x)
#define mad_f_add(x, y)
#define mad_f_sub(x, y)
#define MAD_F_MLX(hi, lo, x, y)
#define mad_f_scale64(hi, lo)
#define MAD_F_SCALEBITS   MAD_F_FRACBITS
#define mad_f_mul(x, y)
#define MAD_F_ML0(hi, lo, x, y)
#define MAD_F_MLA(hi, lo, x, y)
#define MAD_F_MLN(hi, lo)
#define MAD_F_MLZ(hi, lo)
#define LIBMAD_BIT_H
#define mad_bit_finish(bitptr)
#define mad_bit_bitsleft(bitptr)
#define LIBMAD_TIMER_H
#define MAD_TIMER_RESOLUTION   352800000UL
#define mad_timer_reset(timer)
#define mad_timer_sign(timer)
#define LIBMAD_STREAM_H
#define MAD_BUFFER_GUARD   8
#define MAD_BUFFER_MDLEN   (511 + 2048 + MAD_BUFFER_GUARD)
#define MAD_RECOVERABLE(error)
#define mad_stream_options(stream, opts)
#define LIBMAD_FRAME_H
#define MAD_NCHANNELS(header)
#define MAD_NSBSAMPLES(header)
#define mad_header_finish(header)
#define LIBMAD_SYNTH_H
#define mad_synth_finish(synth)
#define LIBMAD_DECODER_H
#define mad_decoder_options(decoder, opts)

Typedefs

typedef signed int mad_fixed_t
typedef signed int mad_fixed64hi_t
typedef unsigned int mad_fixed64lo_t
typedef mad_fixed_t mad_sample_t

Enumerations

enum  mad_units {
  MAD_UNITS_HOURS = -2 , MAD_UNITS_MINUTES = -1 , MAD_UNITS_SECONDS = 0 , MAD_UNITS_DECISECONDS = 10 ,
  MAD_UNITS_CENTISECONDS = 100 , MAD_UNITS_MILLISECONDS = 1000 , MAD_UNITS_8000_HZ = 8000 , MAD_UNITS_11025_HZ = 11025 ,
  MAD_UNITS_12000_HZ = 12000 , MAD_UNITS_16000_HZ = 16000 , MAD_UNITS_22050_HZ = 22050 , MAD_UNITS_24000_HZ = 24000 ,
  MAD_UNITS_32000_HZ = 32000 , MAD_UNITS_44100_HZ = 44100 , MAD_UNITS_48000_HZ = 48000 , MAD_UNITS_24_FPS = 24 ,
  MAD_UNITS_25_FPS = 25 , MAD_UNITS_30_FPS = 30 , MAD_UNITS_48_FPS = 48 , MAD_UNITS_50_FPS = 50 ,
  MAD_UNITS_60_FPS = 60 , MAD_UNITS_75_FPS = 75 , MAD_UNITS_23_976_FPS = -24 , MAD_UNITS_24_975_FPS = -25 ,
  MAD_UNITS_29_97_FPS = -30 , MAD_UNITS_47_952_FPS = -48 , MAD_UNITS_49_95_FPS = -50 , MAD_UNITS_59_94_FPS = -60
}
enum  mad_error {
  MAD_ERROR_NONE = 0x0000 , MAD_ERROR_BUFLEN = 0x0001 , MAD_ERROR_BUFPTR = 0x0002 , MAD_ERROR_NOMEM = 0x0031 ,
  MAD_ERROR_LOSTSYNC = 0x0101 , MAD_ERROR_BADLAYER = 0x0102 , MAD_ERROR_BADBITRATE = 0x0103 , MAD_ERROR_BADSAMPLERATE = 0x0104 ,
  MAD_ERROR_BADEMPHASIS = 0x0105 , MAD_ERROR_BADCRC = 0x0201 , MAD_ERROR_BADBITALLOC = 0x0211 , MAD_ERROR_BADSCALEFACTOR = 0x0221 ,
  MAD_ERROR_BADMODE = 0x0222 , MAD_ERROR_BADFRAMELEN = 0x0231 , MAD_ERROR_BADBIGVALUES = 0x0232 , MAD_ERROR_BADBLOCKTYPE = 0x0233 ,
  MAD_ERROR_BADSCFSI = 0x0234 , MAD_ERROR_BADDATAPTR = 0x0235 , MAD_ERROR_BADPART3LEN = 0x0236 , MAD_ERROR_BADHUFFTABLE = 0x0237 ,
  MAD_ERROR_BADHUFFDATA = 0x0238 , MAD_ERROR_BADSTEREO = 0x0239
}
enum  { MAD_OPTION_IGNORECRC = 0x0001 , MAD_OPTION_HALFSAMPLERATE = 0x0002 }
enum  mad_layer { MAD_LAYER_I = 1 , MAD_LAYER_II = 2 , MAD_LAYER_III = 3 }
enum  mad_mode { MAD_MODE_SINGLE_CHANNEL = 0 , MAD_MODE_DUAL_CHANNEL = 1 , MAD_MODE_JOINT_STEREO = 2 , MAD_MODE_STEREO = 3 }
enum  mad_emphasis { MAD_EMPHASIS_NONE = 0 , MAD_EMPHASIS_50_15_US = 1 , MAD_EMPHASIS_CCITT_J_17 = 3 , MAD_EMPHASIS_RESERVED = 2 }
enum  {
  MAD_FLAG_NPRIVATE_III = 0x0007 , MAD_FLAG_INCOMPLETE = 0x0008 , MAD_FLAG_PROTECTION = 0x0010 , MAD_FLAG_COPYRIGHT = 0x0020 ,
  MAD_FLAG_ORIGINAL = 0x0040 , MAD_FLAG_PADDING = 0x0080 , MAD_FLAG_I_STEREO = 0x0100 , MAD_FLAG_MS_STEREO = 0x0200 ,
  MAD_FLAG_FREEFORMAT = 0x0400 , MAD_FLAG_LSF_EXT = 0x1000 , MAD_FLAG_MC_EXT = 0x2000 , MAD_FLAG_MPEG_2_5_EXT = 0x4000
}
enum  { MAD_PRIVATE_HEADER = 0x0100 , MAD_PRIVATE_III = 0x001f }
enum  { MAD_PCM_CHANNEL_SINGLE = 0 }
enum  { MAD_PCM_CHANNEL_DUAL_1 = 0 , MAD_PCM_CHANNEL_DUAL_2 = 1 }
enum  { MAD_PCM_CHANNEL_STEREO_LEFT = 0 , MAD_PCM_CHANNEL_STEREO_RIGHT = 1 }
enum  mad_decoder_mode { MAD_DECODER_MODE_SYNC = 0 , MAD_DECODER_MODE_ASYNC }
enum  mad_flow { MAD_FLOW_CONTINUE = 0x0000 , MAD_FLOW_STOP = 0x0010 , MAD_FLOW_BREAK = 0x0011 , MAD_FLOW_IGNORE = 0x0020 }

Functions

mad_fixed_t mad_f_abs (mad_fixed_t)
mad_fixed_t mad_f_div (mad_fixed_t, mad_fixed_t)
void mad_bit_init (struct mad_bitptr *, unsigned char const *)
unsigned int mad_bit_length (struct mad_bitptr const *, struct mad_bitptr const *)
unsigned char const * mad_bit_nextbyte (struct mad_bitptr const *)
void mad_bit_skip (struct mad_bitptr *, unsigned int)
unsigned long mad_bit_read (struct mad_bitptr *, unsigned int)
void mad_bit_write (struct mad_bitptr *, unsigned int, unsigned long)
unsigned short mad_bit_crc (struct mad_bitptr, unsigned int, unsigned short)
int mad_timer_compare (mad_timer_t, mad_timer_t)
void mad_timer_negate (mad_timer_t *)
mad_timer_t mad_timer_abs (mad_timer_t)
void mad_timer_set (mad_timer_t *, unsigned long, unsigned long, unsigned long)
void mad_timer_add (mad_timer_t *, mad_timer_t)
void mad_timer_multiply (mad_timer_t *, signed long)
signed long mad_timer_count (mad_timer_t, enum mad_units)
unsigned long mad_timer_fraction (mad_timer_t, unsigned long)
void mad_timer_string (mad_timer_t, char *, char const *, enum mad_units, enum mad_units, unsigned long)
void mad_stream_init (struct mad_stream *)
void mad_stream_finish (struct mad_stream *)
void mad_stream_buffer (struct mad_stream *, unsigned char const *, unsigned long)
void mad_stream_skip (struct mad_stream *, unsigned long)
int mad_stream_sync (struct mad_stream *)
char const * mad_stream_errorstr (struct mad_stream const *)
void mad_header_init (struct mad_header *)
int mad_header_decode (struct mad_header *, struct mad_stream *)
void mad_frame_init (struct mad_frame *)
void mad_frame_finish (struct mad_frame *)
int mad_frame_decode (struct mad_frame *, struct mad_stream *)
void mad_frame_mute (struct mad_frame *)
void mad_synth_init (struct mad_synth *)
void mad_synth_mute (struct mad_synth *)
void mad_synth_frame (struct mad_synth *, struct mad_frame const *)
void mad_decoder_init (struct mad_decoder *, void *, enum mad_flow(*)(void *, struct mad_stream *), enum mad_flow(*)(void *, struct mad_header const *), enum mad_flow(*)(void *, struct mad_stream const *, struct mad_frame *), enum mad_flow(*)(void *, struct mad_header const *, struct mad_pcm *), enum mad_flow(*)(void *, struct mad_stream *, struct mad_frame *), enum mad_flow(*)(void *, void *, unsigned int *))
int mad_decoder_finish (struct mad_decoder *)
int mad_decoder_run (struct mad_decoder *, enum mad_decoder_mode)
int mad_decoder_message (struct mad_decoder *, void *, unsigned int *)

Variables

char const mad_version []
char const mad_copyright []
char const mad_author []
char const mad_build []
mad_timer_t const mad_timer_zero

Macro Definition Documentation

◆ FPM_INTEL

#define FPM_INTEL

Definition at line 31 of file mad.h.

◆ LIBMAD_BIT_H

#define LIBMAD_BIT_H

Definition at line 553 of file mad.h.

◆ LIBMAD_DECODER_H

#define LIBMAD_DECODER_H

Definition at line 899 of file mad.h.

◆ LIBMAD_FIXED_H

#define LIBMAD_FIXED_H

Definition at line 72 of file mad.h.

◆ LIBMAD_FRAME_H

#define LIBMAD_FRAME_H

Definition at line 753 of file mad.h.

◆ LIBMAD_STREAM_H

#define LIBMAD_STREAM_H

Definition at line 664 of file mad.h.

◆ LIBMAD_SYNTH_H

#define LIBMAD_SYNTH_H

Definition at line 850 of file mad.h.

◆ LIBMAD_TIMER_H

#define LIBMAD_TIMER_H

Definition at line 582 of file mad.h.

◆ LIBMAD_VERSION_H

#define LIBMAD_VERSION_H

Definition at line 43 of file mad.h.

◆ MAD_AUTHOR

#define MAD_AUTHOR   "Underbit Technologies, Inc."

Definition at line 59 of file mad.h.

◆ mad_bit_bitsleft

#define mad_bit_bitsleft ( bitptr)
Value:
((bitptr)->left)

Definition at line 568 of file mad.h.

◆ mad_bit_finish

#define mad_bit_finish ( bitptr)

Definition at line 563 of file mad.h.

◆ MAD_BUFFER_GUARD

#define MAD_BUFFER_GUARD   8

Definition at line 667 of file mad.h.

◆ MAD_BUFFER_MDLEN

#define MAD_BUFFER_MDLEN   (511 + 2048 + MAD_BUFFER_GUARD)

Definition at line 668 of file mad.h.

◆ mad_decoder_options

#define mad_decoder_options ( decoder,
opts )
Value:
((void) ((decoder)->options = (opts)))

Definition at line 958 of file mad.h.

◆ MAD_EMAIL

#define MAD_EMAIL   "info@underbit.com"

Definition at line 60 of file mad.h.

◆ MAD_F

#define MAD_F ( x)
Value:
((mad_fixed_t) (x##L))

Definition at line 124 of file mad.h.

◆ mad_f_add

#define mad_f_add ( x,
y )
Value:
((x) + (y))

Definition at line 155 of file mad.h.

◆ MAD_F_FRACBITS

#define MAD_F_FRACBITS   28

Definition at line 121 of file mad.h.

◆ mad_f_fracpart

#define mad_f_fracpart ( x)
Value:
((x) & ((1L << MAD_F_FRACBITS) - 1))

Definition at line 150 of file mad.h.

◆ mad_f_fromint

#define mad_f_fromint ( x)
Value:
((x) << MAD_F_FRACBITS)

Definition at line 153 of file mad.h.

◆ mad_f_intpart

#define mad_f_intpart ( x)
Value:
((x) >> MAD_F_FRACBITS)

Definition at line 149 of file mad.h.

◆ MAD_F_MAX

#define MAD_F_MAX   ((mad_fixed_t) +0x7fffffffL)

Definition at line 140 of file mad.h.

◆ MAD_F_MIN

#define MAD_F_MIN   ((mad_fixed_t) -0x80000000L)

Definition at line 139 of file mad.h.

◆ MAD_F_ML0

#define MAD_F_ML0 ( hi,
lo,
x,
y )
Value:
((lo) = mad_f_mul((x), (y)))

Definition at line 510 of file mad.h.

◆ MAD_F_MLA

#define MAD_F_MLA ( hi,
lo,
x,
y )
Value:
((lo) += mad_f_mul((x), (y)))

Definition at line 511 of file mad.h.

◆ MAD_F_MLN

#define MAD_F_MLN ( hi,
lo )
Value:
((lo) = -(lo))

Definition at line 512 of file mad.h.

◆ MAD_F_MLX

#define MAD_F_MLX ( hi,
lo,
x,
y )
Value:
asm ("imull %3" \
: "=a" (lo), "=d" (hi) \
: "%a" (x), "rm" (y) \
: "cc")

Definition at line 218 of file mad.h.

◆ MAD_F_MLZ

#define MAD_F_MLZ ( hi,
lo )
Value:
((void) (hi), (mad_fixed_t) (lo))

Definition at line 513 of file mad.h.

◆ mad_f_mul

#define mad_f_mul ( x,
y )
Value:
({ register mad_fixed64hi_t __hi; \
register mad_fixed64lo_t __lo; \
MAD_F_MLX(__hi, __lo, (x), (y)); \
mad_f_scale64(__hi, __lo); \
})

Definition at line 501 of file mad.h.

◆ MAD_F_ONE

#define MAD_F_ONE   MAD_F(0x10000000)

Definition at line 142 of file mad.h.

◆ mad_f_scale64

#define mad_f_scale64 ( hi,
lo )
Value:
({ mad_fixed_t __result; \
asm ("shrdl %3,%2,%1" \
: "=rm" (__result) \
: "0" (lo), "r" (hi), "I" (MAD_F_SCALEBITS) \
: "cc"); \
__result; \
})

Definition at line 276 of file mad.h.

◆ MAD_F_SCALEBITS

#define MAD_F_SCALEBITS   MAD_F_FRACBITS

Definition at line 286 of file mad.h.

◆ mad_f_sub

#define mad_f_sub ( x,
y )
Value:
((x) - (y))

Definition at line 156 of file mad.h.

◆ mad_f_todouble

#define mad_f_todouble ( x)
Value:
((double) \
((x) / (double) (1L << MAD_F_FRACBITS)))

Definition at line 146 of file mad.h.

◆ mad_f_tofixed

#define mad_f_tofixed ( x)
Value:
((mad_fixed_t) \
((x) * (double) (1L << MAD_F_FRACBITS) + 0.5))

Definition at line 144 of file mad.h.

◆ mad_fixed64_t

#define mad_fixed64_t   signed long long

Definition at line 89 of file mad.h.

◆ mad_header_finish

#define mad_header_finish ( header)

Definition at line 834 of file mad.h.

◆ MAD_NCHANNELS

#define MAD_NCHANNELS ( header)
Value:
((header)->mode ? 2 : 1)

Definition at line 803 of file mad.h.

◆ MAD_NSBSAMPLES

#define MAD_NSBSAMPLES ( header)
Value:
((header)->layer == MAD_LAYER_I ? 12 : \
(((header)->layer == MAD_LAYER_III && \
((header)->flags & MAD_FLAG_LSF_EXT)) ? 18 : 36))

Definition at line 804 of file mad.h.

◆ MAD_PUBLISHYEAR

#define MAD_PUBLISHYEAR   "2000-2004"

Definition at line 58 of file mad.h.

◆ MAD_RECOVERABLE

#define MAD_RECOVERABLE ( error)
Value:
((error) & 0xff00)

Definition at line 699 of file mad.h.

◆ mad_stream_options

#define mad_stream_options ( stream,
opts )
Value:
((void) ((stream)->options = (opts)))

Definition at line 737 of file mad.h.

◆ mad_synth_finish

#define mad_synth_finish ( synth)

Definition at line 888 of file mad.h.

◆ mad_timer_reset

#define mad_timer_reset ( timer)
Value:
((void) (*(timer) = mad_timer_zero))

Definition at line 641 of file mad.h.

◆ MAD_TIMER_RESOLUTION

#define MAD_TIMER_RESOLUTION   352800000UL

Definition at line 591 of file mad.h.

◆ mad_timer_sign

#define mad_timer_sign ( timer)
Value:
mad_timer_compare((timer), mad_timer_zero)

Definition at line 645 of file mad.h.

◆ MAD_VERSION

#define MAD_VERSION
Value:
MAD_VERSION_STRING(MAD_VERSION_MAJOR) "." \
MAD_VERSION_STRING(MAD_VERSION_MINOR) "." \
MAD_VERSION_STRING(MAD_VERSION_PATCH) \
MAD_VERSION_EXTRA

Definition at line 53 of file mad.h.

◆ MAD_VERSION_EXTRA

#define MAD_VERSION_EXTRA   " (beta)"

Definition at line 48 of file mad.h.

◆ MAD_VERSION_MAJOR

#define MAD_VERSION_MAJOR   0

Definition at line 45 of file mad.h.

◆ MAD_VERSION_MINOR

#define MAD_VERSION_MINOR   15

Definition at line 46 of file mad.h.

◆ MAD_VERSION_PATCH

#define MAD_VERSION_PATCH   1

Definition at line 47 of file mad.h.

◆ MAD_VERSION_STRING

#define MAD_VERSION_STRING ( num)
Value:
MAD_VERSION_STRINGIZE(num)

Definition at line 51 of file mad.h.

◆ MAD_VERSION_STRINGIZE

#define MAD_VERSION_STRINGIZE ( str)
Value:
#str

Definition at line 50 of file mad.h.

◆ SIZEOF_INT

#define SIZEOF_INT   4

Definition at line 35 of file mad.h.

◆ SIZEOF_LONG

#define SIZEOF_LONG   4

Definition at line 36 of file mad.h.

◆ SIZEOF_LONG_LONG

#define SIZEOF_LONG_LONG   8

Definition at line 37 of file mad.h.

Typedef Documentation

◆ mad_fixed64hi_t

typedef signed int mad_fixed64hi_t

Definition at line 77 of file mad.h.

◆ mad_fixed64lo_t

typedef unsigned int mad_fixed64lo_t

Definition at line 78 of file mad.h.

◆ mad_fixed_t

typedef signed int mad_fixed_t

Definition at line 75 of file mad.h.

◆ mad_sample_t

typedef mad_fixed_t mad_sample_t

Definition at line 95 of file mad.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 881 of file mad.h.

◆ anonymous enum

anonymous enum

Definition at line 827 of file mad.h.

◆ anonymous enum

anonymous enum

Definition at line 870 of file mad.h.

◆ anonymous enum

anonymous enum

Definition at line 724 of file mad.h.

◆ anonymous enum

anonymous enum

Definition at line 809 of file mad.h.

◆ anonymous enum

anonymous enum

Definition at line 875 of file mad.h.

◆ mad_decoder_mode

enum mad_decoder_mode

Definition at line 902 of file mad.h.

◆ mad_emphasis

enum mad_emphasis

Definition at line 769 of file mad.h.

◆ mad_error

enum mad_error

Definition at line 670 of file mad.h.

◆ mad_flow

enum mad_flow

Definition at line 907 of file mad.h.

◆ mad_layer

enum mad_layer

Definition at line 756 of file mad.h.

◆ mad_mode

enum mad_mode

Definition at line 762 of file mad.h.

◆ mad_units

enum mad_units

Definition at line 593 of file mad.h.

Function Documentation

◆ mad_bit_crc()

unsigned short mad_bit_crc ( struct mad_bitptr bitptr,
unsigned int len,
unsigned short init )

Definition at line 197 of file bit.c.

◆ mad_bit_init()

void mad_bit_init ( struct mad_bitptr * bitptr,
unsigned char const * byte )

Definition at line 88 of file bit.c.

◆ mad_bit_length()

unsigned int mad_bit_length ( struct mad_bitptr const * begin,
struct mad_bitptr const * end )

Definition at line 99 of file bit.c.

◆ mad_bit_nextbyte()

unsigned char const * mad_bit_nextbyte ( struct mad_bitptr const * bitptr)

Definition at line 110 of file bit.c.

◆ mad_bit_read()

unsigned long mad_bit_read ( struct mad_bitptr * bitptr,
unsigned int len )

Definition at line 137 of file bit.c.

◆ mad_bit_skip()

void mad_bit_skip ( struct mad_bitptr * bitptr,
unsigned int len )

Definition at line 119 of file bit.c.

◆ mad_decoder_finish()

int mad_decoder_finish ( struct mad_decoder * decoder)

Definition at line 96 of file decoder.c.

◆ mad_decoder_message()

int mad_decoder_message ( struct mad_decoder * decoder,
void * message,
unsigned int * len )

Definition at line 569 of file decoder.c.

◆ mad_decoder_run()

int mad_decoder_run ( struct mad_decoder * decoder,
enum mad_decoder_mode )

Definition at line 533 of file decoder.c.

◆ mad_f_abs()

mad_fixed_t mad_f_abs ( mad_fixed_t x)

Definition at line 34 of file fixed.c.

◆ mad_f_div()

mad_fixed_t mad_f_div ( mad_fixed_t x,
mad_fixed_t y )

Definition at line 43 of file fixed.c.

◆ mad_frame_decode()

int mad_frame_decode ( struct mad_frame * frame,
struct mad_stream * stream )

Definition at line 439 of file frame.c.

◆ mad_frame_finish()

void mad_frame_finish ( struct mad_frame * frame)

Definition at line 106 of file frame.c.

◆ mad_frame_init()

void mad_frame_init ( struct mad_frame * frame)

Definition at line 92 of file frame.c.

◆ mad_frame_mute()

void mad_frame_mute ( struct mad_frame * frame)

Definition at line 485 of file frame.c.

◆ mad_header_decode()

int mad_header_decode ( struct mad_header * header,
struct mad_stream * stream )

Definition at line 301 of file frame.c.

◆ mad_header_init()

void mad_header_init ( struct mad_header * header)

Definition at line 69 of file frame.c.

◆ mad_stream_buffer()

void mad_stream_buffer ( struct mad_stream * stream,
unsigned char const * buffer,
unsigned long length )

Definition at line 79 of file stream.c.

◆ mad_stream_errorstr()

char const * mad_stream_errorstr ( struct mad_stream const * stream)

Definition at line 129 of file stream.c.

◆ mad_stream_finish()

void mad_stream_finish ( struct mad_stream * stream)

Definition at line 64 of file stream.c.

◆ mad_stream_init()

void mad_stream_init ( struct mad_stream * stream)

Definition at line 37 of file stream.c.

◆ mad_stream_skip()

void mad_stream_skip ( struct mad_stream * stream,
unsigned long length )

Definition at line 97 of file stream.c.

◆ mad_stream_sync()

int mad_stream_sync ( struct mad_stream * stream)

Definition at line 106 of file stream.c.

◆ mad_synth_frame()

void mad_synth_frame ( struct mad_synth * synth,
struct mad_frame const * frame )

Definition at line 832 of file synth.c.

◆ mad_synth_init()

void mad_synth_init ( struct mad_synth * synth)

Definition at line 36 of file synth.c.

◆ mad_synth_mute()

void mad_synth_mute ( struct mad_synth * synth)

Definition at line 51 of file synth.c.

◆ mad_timer_abs()

mad_timer_t mad_timer_abs ( mad_timer_t timer)

Definition at line 79 of file timer.c.

◆ mad_timer_add()

void mad_timer_add ( mad_timer_t * timer,
mad_timer_t incr )

Definition at line 230 of file timer.c.

◆ mad_timer_compare()

int mad_timer_compare ( mad_timer_t timer1,
mad_timer_t timer2 )

Definition at line 42 of file timer.c.

◆ mad_timer_count()

signed long mad_timer_count ( mad_timer_t timer,
enum mad_units )

Definition at line 270 of file timer.c.

◆ mad_timer_fraction()

unsigned long mad_timer_fraction ( mad_timer_t timer,
unsigned long denom )

Definition at line 324 of file timer.c.

◆ mad_timer_multiply()

void mad_timer_multiply ( mad_timer_t * timer,
signed long scalar )

Definition at line 243 of file timer.c.

◆ mad_timer_negate()

void mad_timer_negate ( mad_timer_t * timer)

Definition at line 65 of file timer.c.

◆ mad_timer_set()

void mad_timer_set ( mad_timer_t * timer,
unsigned long seconds,
unsigned long numer,
unsigned long denom )

Definition at line 158 of file timer.c.

◆ mad_timer_string()

void mad_timer_string ( mad_timer_t timer,
char * dest,
char const * format,
enum mad_units,
enum mad_units,
unsigned long subparts )

Definition at line 345 of file timer.c.

Variable Documentation

◆ mad_author

char const mad_author[]
extern

Definition at line 32 of file version.c.

◆ mad_build

char const mad_build[]
extern

Definition at line 34 of file version.c.

◆ mad_copyright

char const mad_copyright[]
extern

Definition at line 31 of file version.c.

◆ mad_timer_zero

mad_timer_t const mad_timer_zero
extern

Definition at line 36 of file timer.c.

◆ mad_version

char const mad_version[]
extern

Definition at line 30 of file version.c.