sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
decoder.h File Reference
#include "stream.h"
#include "frame.h"
#include "synth.h"

Go to the source code of this file.

Classes

struct  mad_decoder

Macros

#define mad_decoder_options(decoder, opts)

Enumerations

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

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 *)

Macro Definition Documentation

◆ mad_decoder_options

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

Definition at line 89 of file decoder.h.

Enumeration Type Documentation

◆ mad_decoder_mode

enum mad_decoder_mode

Definition at line 33 of file decoder.h.

◆ mad_flow

enum mad_flow

Definition at line 38 of file decoder.h.

Function Documentation

◆ 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.