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.
Functions
audiodevicemanager.cpp File Reference
#include "audio/audiodevicemanager.h"
#include "util/simpleserializer.h"
#include "util/messagequeue.h"
#include "dsp/dspcommands.h"
#include <QDataStream>
#include <QSet>
#include <QDebug>
+ Include dependency graph for audiodevicemanager.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<() [1/2]

QDataStream& operator<< ( QDataStream &  ds,
const AudioDeviceManager::InputDeviceInfo info 
)

Definition at line 32 of file audiodevicemanager.cpp.

References AudioDeviceManager::InputDeviceInfo::sampleRate, and AudioDeviceManager::InputDeviceInfo::volume.

Referenced by DeviceUserArgs::Args::Args().

33 {
34  ds << info.sampleRate << info.volume;
35  return ds;
36 }
+ Here is the caller graph for this function:

◆ operator<<() [2/2]

QDataStream& operator<< ( QDataStream &  ds,
const AudioDeviceManager::OutputDeviceInfo info 
)

Definition at line 44 of file audiodevicemanager.cpp.

References AudioDeviceManager::OutputDeviceInfo::copyToUDP, AudioDeviceManager::OutputDeviceInfo::sampleRate, AudioDeviceManager::OutputDeviceInfo::udpAddress, AudioDeviceManager::OutputDeviceInfo::udpChannelCodec, AudioDeviceManager::OutputDeviceInfo::udpChannelMode, AudioDeviceManager::OutputDeviceInfo::udpDecimationFactor, AudioDeviceManager::OutputDeviceInfo::udpPort, and AudioDeviceManager::OutputDeviceInfo::udpUseRTP.

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 }
AudioOutput::UDPChannelCodec udpChannelCodec
AudioOutput::UDPChannelMode udpChannelMode

◆ operator>>() [1/2]

QDataStream& operator>> ( QDataStream &  ds,
AudioDeviceManager::InputDeviceInfo info 
)

Definition at line 38 of file audiodevicemanager.cpp.

References AudioDeviceManager::InputDeviceInfo::sampleRate, and AudioDeviceManager::InputDeviceInfo::volume.

Referenced by DeviceUserArgs::Args::Args().

39 {
40  ds >> info.sampleRate >> info.volume;
41  return ds;
42 }
+ Here is the caller graph for this function:

◆ operator>>() [2/2]

QDataStream& operator>> ( QDataStream &  ds,
AudioDeviceManager::OutputDeviceInfo info 
)

Definition at line 57 of file audiodevicemanager.cpp.

References AudioDeviceManager::OutputDeviceInfo::copyToUDP, AudioDeviceManager::OutputDeviceInfo::sampleRate, AudioDeviceManager::OutputDeviceInfo::udpAddress, AudioDeviceManager::OutputDeviceInfo::udpChannelCodec, AudioDeviceManager::OutputDeviceInfo::udpChannelMode, AudioDeviceManager::OutputDeviceInfo::udpDecimationFactor, AudioDeviceManager::OutputDeviceInfo::udpPort, and AudioDeviceManager::OutputDeviceInfo::udpUseRTP.

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