MythTV  master
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FreeSurround Class Reference

#include <freesurround.h>

Collaboration diagram for FreeSurround:
Collaboration graph
[legend]

Classes

struct  fsurround_params
 

Public Types

enum  SurroundMode { SurroundModePassive, SurroundModeActiveSimple, SurroundModeActiveLinear, SurroundModePassiveHall }
 

Public Member Functions

 FreeSurround (uint srate, bool moviemode, SurroundMode mode)
 
 ~FreeSurround ()
 
uint putFrames (void *buffer, uint numFrames, uint numChannels)
 
uint receiveFrames (void *buffer, uint maxFrames)
 
void flush ()
 
uint numUnprocessedFrames ()
 
uint numFrames ()
 
long long getLatency ()
 
uint frameLatency ()
 

Static Public Member Functions

static uint framesPerBlock ()
 

Protected Member Functions

void process_block ()
 
void open ()
 
void close ()
 
void SetParams ()
 

Private Attributes

struct FreeSurround::fsurround_params params
 
uint srate
 
struct buffersbufs
 
class fsurround_decoderdecoder
 
int in_count
 
int out_count
 
bool processed
 
int processed_size
 
SurroundMode surround_mode
 
int latency_frames
 
int channels
 

Detailed Description

Definition at line 26 of file freesurround.h.

Member Enumeration Documentation

◆ SurroundMode

Enumerator
SurroundModePassive 
SurroundModeActiveSimple 
SurroundModeActiveLinear 
SurroundModePassiveHall 

Definition at line 29 of file freesurround.h.

Constructor & Destructor Documentation

◆ FreeSurround()

FreeSurround::FreeSurround ( uint  srate,
bool  moviemode,
SurroundMode  mode 
)

Definition at line 75 of file freesurround.cpp.

◆ ~FreeSurround()

FreeSurround::~FreeSurround ( )

Definition at line 151 of file freesurround.cpp.

Member Function Documentation

◆ putFrames()

uint FreeSurround::putFrames ( void *  buffer,
uint  numFrames,
uint  numChannels 
)

Definition at line 160 of file freesurround.cpp.

Referenced by AudioOutputBase::CopyWithUpmix().

◆ receiveFrames()

uint FreeSurround::receiveFrames ( void *  buffer,
uint  maxFrames 
)

Definition at line 325 of file freesurround.cpp.

Referenced by AudioOutputBase::CopyWithUpmix().

◆ flush()

void FreeSurround::flush ( )

Definition at line 429 of file freesurround.cpp.

Referenced by AudioOutputBase::Reset().

◆ numUnprocessedFrames()

uint FreeSurround::numUnprocessedFrames ( )

Definition at line 456 of file freesurround.cpp.

Referenced by AudioOutputBase::AddData().

◆ numFrames()

uint FreeSurround::numFrames ( )

Definition at line 461 of file freesurround.cpp.

Referenced by AudioOutputBase::CopyWithUpmix(), and putFrames().

◆ getLatency()

long long FreeSurround::getLatency ( )

Definition at line 421 of file freesurround.cpp.

◆ frameLatency()

uint FreeSurround::frameLatency ( )

Definition at line 466 of file freesurround.cpp.

Referenced by AudioOutputBase::SetAudiotime().

◆ framesPerBlock()

uint FreeSurround::framesPerBlock ( )
static

Definition at line 473 of file freesurround.cpp.

◆ process_block()

void FreeSurround::process_block ( )
protected

Definition at line 406 of file freesurround.cpp.

Referenced by putFrames().

◆ open()

void FreeSurround::open ( )
protected

Definition at line 437 of file freesurround.cpp.

Referenced by FreeSurround().

◆ close()

void FreeSurround::close ( void  )
protected

Definition at line 450 of file freesurround.cpp.

Referenced by ~FreeSurround().

◆ SetParams()

void FreeSurround::SetParams ( )
protected

Definition at line 128 of file freesurround.cpp.

Referenced by open().

Member Data Documentation

◆ params

struct FreeSurround::fsurround_params FreeSurround::params
private

◆ srate

uint FreeSurround::srate
private

Definition at line 75 of file freesurround.h.

Referenced by FreeSurround(), getLatency(), and open().

◆ bufs

struct buffers* FreeSurround::bufs
private

Definition at line 78 of file freesurround.h.

Referenced by flush(), FreeSurround(), open(), putFrames(), receiveFrames(), and ~FreeSurround().

◆ decoder

class fsurround_decoder* FreeSurround::decoder
private

◆ in_count

int FreeSurround::in_count
private

Definition at line 80 of file freesurround.h.

Referenced by frameLatency(), getLatency(), numUnprocessedFrames(), and putFrames().

◆ out_count

int FreeSurround::out_count
private

Definition at line 81 of file freesurround.h.

Referenced by frameLatency(), numFrames(), putFrames(), and receiveFrames().

◆ processed

bool FreeSurround::processed
private

Definition at line 82 of file freesurround.h.

Referenced by frameLatency(), putFrames(), and receiveFrames().

◆ processed_size

int FreeSurround::processed_size
private

Definition at line 83 of file freesurround.h.

Referenced by putFrames(), and receiveFrames().

◆ surround_mode

SurroundMode FreeSurround::surround_mode
private

Definition at line 84 of file freesurround.h.

Referenced by FreeSurround(), and putFrames().

◆ latency_frames

int FreeSurround::latency_frames
private

Definition at line 85 of file freesurround.h.

Referenced by FreeSurround(), getLatency(), and putFrames().

◆ channels

int FreeSurround::channels
private

Definition at line 86 of file freesurround.h.

Referenced by putFrames(), and receiveFrames().


The documentation for this class was generated from the following files: