SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
AMBEWorker::MsgMbeDecode Class Reference

#include <ambeworker.h>

+ Inheritance diagram for AMBEWorker::MsgMbeDecode:
+ Collaboration diagram for AMBEWorker::MsgMbeDecode:

Public Member Functions

const unsigned char * getMbeFrame () const
 
SerialDV::DVRate getMbeRate () const
 
int getVolumeIndex () const
 
unsigned char getChannels () const
 
bool getUseHP () const
 
int getUpsampling () const
 
AudioFifogetAudioFifo ()
 
- Public Member Functions inherited from Message
 Message ()
 
virtual ~Message ()
 
virtual const char * getIdentifier () const
 
virtual bool matchIdentifier (const char *identifier) const
 
void * getDestination () const
 
void setDestination (void *destination)
 

Static Public Member Functions

static MsgMbeDecodecreate (const unsigned char *mbeFrame, int mbeRateIndex, int volumeIndex, unsigned char channels, bool useHP, int upsampling, AudioFifo *audioFifo)
 
- Static Public Member Functions inherited from Message
static bool match (const Message *message)
 

Private Member Functions

 MsgMbeDecode (const unsigned char *mbeFrame, SerialDV::DVRate mbeRate, int volumeIndex, unsigned char channels, bool useHP, int upsampling, AudioFifo *audioFifo)
 

Private Attributes

unsigned char m_mbeFrame [SerialDV::MBE_FRAME_MAX_LENGTH_BYTES]
 
SerialDV::DVRate m_mbeRate
 
int m_volumeIndex
 
unsigned char m_channels
 
bool m_useHP
 
int m_upsampling
 
AudioFifom_audioFifo
 

Additional Inherited Members

- Protected Attributes inherited from Message
void * m_destination
 
- Static Protected Attributes inherited from Message
static const char * m_identifier = 0
 

Detailed Description

Definition at line 49 of file ambeworker.h.

Constructor & Destructor Documentation

◆ MsgMbeDecode()

AMBEWorker::MsgMbeDecode::MsgMbeDecode ( const unsigned char *  mbeFrame,
SerialDV::DVRate  mbeRate,
int  volumeIndex,
unsigned char  channels,
bool  useHP,
int  upsampling,
AudioFifo audioFifo 
)
inlineprivate

Definition at line 82 of file ambeworker.h.

88  :
89  Message(),
90  m_mbeRate(mbeRate),
91  m_volumeIndex(volumeIndex),
92  m_channels(channels),
93  m_useHP(useHP),
94  m_upsampling(upsampling),
95  m_audioFifo(audioFifo)
96  {
97  memcpy((void *) m_mbeFrame, (const void *) mbeFrame, SerialDV::DVController::getNbMbeBytes(m_mbeRate));
98  }
unsigned char m_mbeFrame[SerialDV::MBE_FRAME_MAX_LENGTH_BYTES]
Definition: ambeworker.h:74
AudioFifo * m_audioFifo
Definition: ambeworker.h:80
SerialDV::DVRate m_mbeRate
Definition: ambeworker.h:75
Message()
Definition: message.cpp:26
unsigned char m_channels
Definition: ambeworker.h:77

Member Function Documentation

◆ create()

static MsgMbeDecode* AMBEWorker::MsgMbeDecode::create ( const unsigned char *  mbeFrame,
int  mbeRateIndex,
int  volumeIndex,
unsigned char  channels,
bool  useHP,
int  upsampling,
AudioFifo audioFifo 
)
inlinestatic

Definition at line 61 of file ambeworker.h.

Referenced by AMBEWorker::pushMbeFrame().

69  {
70  return new MsgMbeDecode(mbeFrame, (SerialDV::DVRate) mbeRateIndex, volumeIndex, channels, useHP, upsampling, audioFifo);
71  }
MsgMbeDecode(const unsigned char *mbeFrame, SerialDV::DVRate mbeRate, int volumeIndex, unsigned char channels, bool useHP, int upsampling, AudioFifo *audioFifo)
Definition: ambeworker.h:82
+ Here is the caller graph for this function:

◆ getAudioFifo()

AudioFifo* AMBEWorker::MsgMbeDecode::getAudioFifo ( )
inline

Definition at line 59 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

59 { return m_audioFifo; }
AudioFifo * m_audioFifo
Definition: ambeworker.h:80
+ Here is the caller graph for this function:

◆ getChannels()

unsigned char AMBEWorker::MsgMbeDecode::getChannels ( ) const
inline

Definition at line 56 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

56 { return m_channels % 4; }
unsigned char m_channels
Definition: ambeworker.h:77
+ Here is the caller graph for this function:

◆ getMbeFrame()

const unsigned char* AMBEWorker::MsgMbeDecode::getMbeFrame ( ) const
inline

Definition at line 53 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

53 { return m_mbeFrame; }
unsigned char m_mbeFrame[SerialDV::MBE_FRAME_MAX_LENGTH_BYTES]
Definition: ambeworker.h:74
+ Here is the caller graph for this function:

◆ getMbeRate()

SerialDV::DVRate AMBEWorker::MsgMbeDecode::getMbeRate ( ) const
inline

Definition at line 54 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

54 { return m_mbeRate; }
SerialDV::DVRate m_mbeRate
Definition: ambeworker.h:75
+ Here is the caller graph for this function:

◆ getUpsampling()

int AMBEWorker::MsgMbeDecode::getUpsampling ( ) const
inline

Definition at line 58 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

58 { return m_upsampling; }
+ Here is the caller graph for this function:

◆ getUseHP()

bool AMBEWorker::MsgMbeDecode::getUseHP ( ) const
inline

Definition at line 57 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

57 { return m_useHP; }
+ Here is the caller graph for this function:

◆ getVolumeIndex()

int AMBEWorker::MsgMbeDecode::getVolumeIndex ( ) const
inline

Definition at line 55 of file ambeworker.h.

Referenced by AMBEWorker::handleInputMessages().

55 { return m_volumeIndex; }
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_audioFifo

AudioFifo* AMBEWorker::MsgMbeDecode::m_audioFifo
private

Definition at line 80 of file ambeworker.h.

◆ m_channels

unsigned char AMBEWorker::MsgMbeDecode::m_channels
private

Definition at line 77 of file ambeworker.h.

◆ m_mbeFrame

unsigned char AMBEWorker::MsgMbeDecode::m_mbeFrame[SerialDV::MBE_FRAME_MAX_LENGTH_BYTES]
private

Definition at line 74 of file ambeworker.h.

◆ m_mbeRate

SerialDV::DVRate AMBEWorker::MsgMbeDecode::m_mbeRate
private

Definition at line 75 of file ambeworker.h.

◆ m_upsampling

int AMBEWorker::MsgMbeDecode::m_upsampling
private

Definition at line 79 of file ambeworker.h.

◆ m_useHP

bool AMBEWorker::MsgMbeDecode::m_useHP
private

Definition at line 78 of file ambeworker.h.

◆ m_volumeIndex

int AMBEWorker::MsgMbeDecode::m_volumeIndex
private

Definition at line 76 of file ambeworker.h.


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