synth.h File Reference

Defines the mad_synth structure and methods (and its inner structure mad_pcm ), to perform PCM synthesis. More...

#include "fixed.h"
#include "frame.h"

Include dependency graph for synth.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mad_pcm
struct  mad_synth

Defines

#define mad_synth_finish(synth)

Enumerations

enum  { MAD_PCM_CHANNEL_SINGLE = 0 }
 single channel PCM selector More...
enum  { MAD_PCM_CHANNEL_DUAL_1 = 0, MAD_PCM_CHANNEL_DUAL_2 = 1 }
 dual channel PCM selector More...
enum  { MAD_PCM_CHANNEL_STEREO_LEFT = 0, MAD_PCM_CHANNEL_STEREO_RIGHT = 1 }
 stereo PCM selector More...

Functions

void mad_synth_init (struct mad_synth *)
 Initializes synth struct.
void mad_synth_mute (struct mad_synth *)
 Zeroes all polyphase filterbank values, resetting synthesis.
void mad_synth_frame (struct mad_synth *, struct mad_frame const *)
 perform PCM synthesis of frame subband samples.


Detailed Description

Defines the mad_synth structure and methods (and its inner structure mad_pcm ), to perform PCM synthesis.

Definition in file synth.h.


Define Documentation

#define mad_synth_finish ( synth   ) 

Definition at line 65 of file synth.h.

Referenced by run_sync().


Enumeration Type Documentation

anonymous enum

single channel PCM selector

Enumerator:
MAD_PCM_CHANNEL_SINGLE 

Definition at line 47 of file synth.h.

anonymous enum

dual channel PCM selector

Enumerator:
MAD_PCM_CHANNEL_DUAL_1 
MAD_PCM_CHANNEL_DUAL_2 

Definition at line 52 of file synth.h.

anonymous enum

stereo PCM selector

Enumerator:
MAD_PCM_CHANNEL_STEREO_LEFT 
MAD_PCM_CHANNEL_STEREO_RIGHT 

Definition at line 58 of file synth.h.


Function Documentation

void mad_synth_frame ( struct mad_synth ,
struct mad_frame const *   
)

perform PCM synthesis of frame subband samples.

Definition at line 835 of file synth.c.

References mad_pcm::channels, mad_frame::header, mad_pcm::length, MAD_NCHANNELS, MAD_NSBSAMPLES, MAD_OPTION_HALFSAMPLERATE, mad_frame::options, mad_synth::pcm, mad_synth::phase, mad_header::samplerate, mad_pcm::samplerate, synth_full(), and synth_half().

Referenced by run_sync().

Here is the call graph for this function:

void mad_synth_init ( struct mad_synth  ) 

Initializes synth struct.

Definition at line 38 of file synth.c.

References mad_pcm::channels, mad_pcm::length, mad_synth_mute(), mad_synth::pcm, mad_synth::phase, and mad_pcm::samplerate.

Referenced by run_sync().

Here is the call graph for this function:

void mad_synth_mute ( struct mad_synth  ) 

Zeroes all polyphase filterbank values, resetting synthesis.

Definition at line 52 of file synth.c.

References mad_synth::filter, and s.

Referenced by mad_synth_init().


Generated on Tue Jun 10 12:14:18 2008 for libmad by  doxygen 1.5.5