1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -04:00

Audio output device recording: GUI and settings

This commit is contained in:
f4exb
2022-11-08 22:55:40 +01:00
parent e319267b0f
commit e89331f58f
4 changed files with 172 additions and 1 deletions
+9 -1
View File
@@ -62,7 +62,9 @@ public:
udpUseRTP(false),
udpChannelMode(AudioOutputDevice::UDPChannelLeft),
udpChannelCodec(AudioOutputDevice::UDPCodecL16),
udpDecimationFactor(1)
udpDecimationFactor(1),
recordToFile(false),
recordSilenceTime(0)
{}
void resetToDefaults() {
sampleRate = m_defaultAudioSampleRate;
@@ -73,6 +75,9 @@ public:
udpChannelMode = AudioOutputDevice::UDPChannelLeft;
udpChannelCodec = AudioOutputDevice::UDPCodecL16;
udpDecimationFactor = 1;
fileRecordName.clear();
recordToFile = false;
recordSilenceTime = 0;
}
int sampleRate;
QString udpAddress;
@@ -82,6 +87,9 @@ public:
AudioOutputDevice::UDPChannelMode udpChannelMode;
AudioOutputDevice::UDPChannelCodec udpChannelCodec;
uint32_t udpDecimationFactor;
QString fileRecordName;
bool recordToFile;
int recordSilenceTime; //!< 100's ms
friend QDataStream& operator<<(QDataStream& ds, const OutputDeviceInfo& info);
friend QDataStream& operator>>(QDataStream& ds, OutputDeviceInfo& info);
};