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 | Public Attributes | Friends | List of all members
AudioDeviceManager::OutputDeviceInfo Class Reference

#include <audiodevicemanager.h>

Public Member Functions

 OutputDeviceInfo ()
 
void resetToDefaults ()
 

Public Attributes

unsigned int sampleRate
 
QString udpAddress
 
quint16 udpPort
 
bool copyToUDP
 
bool udpUseRTP
 
AudioOutput::UDPChannelMode udpChannelMode
 
AudioOutput::UDPChannelCodec udpChannelCodec
 
uint32_t udpDecimationFactor
 

Friends

QDataStream & operator<< (QDataStream &ds, const OutputDeviceInfo &info)
 
QDataStream & operator>> (QDataStream &ds, OutputDeviceInfo &info)
 

Detailed Description

Definition at line 54 of file audiodevicemanager.h.

Constructor & Destructor Documentation

◆ OutputDeviceInfo()

AudioDeviceManager::OutputDeviceInfo::OutputDeviceInfo ( )
inline

Definition at line 57 of file audiodevicemanager.h.

57  :
61  copyToUDP(false),
62  udpUseRTP(false),
66  {}
static const quint16 m_defaultUDPPort
static const QString m_defaultUDPAddress
AudioOutput::UDPChannelCodec udpChannelCodec
Linear 16 bit (no codec)
Definition: audiooutput.h:47
AudioOutput::UDPChannelMode udpChannelMode
static const unsigned int m_defaultAudioSampleRate

Member Function Documentation

◆ resetToDefaults()

void AudioDeviceManager::OutputDeviceInfo::resetToDefaults ( )
inline

Definition at line 67 of file audiodevicemanager.h.

References AudioOutput::UDPChannelLeft, and AudioOutput::UDPCodecL16.

Referenced by WebAPIAdapterGUI::instanceAudioGet(), WebAPIAdapterSrv::instanceAudioGet(), and AudioDialogX::on_outputReset_clicked().

67  {
71  copyToUDP = false;
72  udpUseRTP = false;
76  }
static const quint16 m_defaultUDPPort
static const QString m_defaultUDPAddress
AudioOutput::UDPChannelCodec udpChannelCodec
Linear 16 bit (no codec)
Definition: audiooutput.h:47
AudioOutput::UDPChannelMode udpChannelMode
static const unsigned int m_defaultAudioSampleRate
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

QDataStream& operator<< ( QDataStream &  ds,
const OutputDeviceInfo info 
)
friend

Definition at line 44 of file audiodevicemanager.cpp.

45 {
46  ds << info.sampleRate
47  << info.udpAddress
48  << info.udpPort
49  << info.copyToUDP
50  << info.udpUseRTP
51  << (int) info.udpChannelMode
52  << (int) info.udpChannelCodec
53  << info.udpDecimationFactor;
54  return ds;
55 }

◆ operator>>

QDataStream& operator>> ( QDataStream &  ds,
OutputDeviceInfo info 
)
friend

Definition at line 57 of file audiodevicemanager.cpp.

58 {
59  int intChannelMode;
60  int intChannelCodec;
61 
62  ds >> info.sampleRate
63  >> info.udpAddress
64  >> info.udpPort
65  >> info.copyToUDP
66  >> info.udpUseRTP
67  >> intChannelMode
68  >> intChannelCodec
69  >> info.udpDecimationFactor;
70  info.udpChannelMode = (AudioOutput::UDPChannelMode) intChannelMode;
71  info.udpChannelCodec = (AudioOutput::UDPChannelCodec) intChannelCodec;
72  return ds;
73 }
AudioOutput::UDPChannelCodec udpChannelCodec
AudioOutput::UDPChannelMode udpChannelMode

Member Data Documentation

◆ copyToUDP

bool AudioDeviceManager::OutputDeviceInfo::copyToUDP

◆ sampleRate

unsigned int AudioDeviceManager::OutputDeviceInfo::sampleRate

◆ udpAddress

QString AudioDeviceManager::OutputDeviceInfo::udpAddress

◆ udpChannelCodec

AudioOutput::UDPChannelCodec AudioDeviceManager::OutputDeviceInfo::udpChannelCodec

◆ udpChannelMode

AudioOutput::UDPChannelMode AudioDeviceManager::OutputDeviceInfo::udpChannelMode

◆ udpDecimationFactor

uint32_t AudioDeviceManager::OutputDeviceInfo::udpDecimationFactor

◆ udpPort

quint16 AudioDeviceManager::OutputDeviceInfo::udpPort

◆ udpUseRTP

bool AudioDeviceManager::OutputDeviceInfo::udpUseRTP

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