mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-05 07:24:47 -04:00
Can now choose demodulator output devices
This commit is contained in:
@@ -194,3 +194,16 @@ float DemodulatorInstance::getSquelchLevel() {
|
||||
return demodulatorThread->getSquelchLevel();
|
||||
}
|
||||
|
||||
|
||||
void DemodulatorInstance::setOutputDevice(int device_id) {
|
||||
if (audioThread) {
|
||||
AudioThreadCommand command;
|
||||
command.cmd = AudioThreadCommand::AUDIO_THREAD_CMD_SET_DEVICE;
|
||||
command.int_value = device_id;
|
||||
audioThread->getCommandQueue()->push(command);
|
||||
}
|
||||
}
|
||||
|
||||
int DemodulatorInstance::getOutputDevice() {
|
||||
return audioThread->getOutputDevice();
|
||||
}
|
||||
|
||||
@@ -60,6 +60,9 @@ public:
|
||||
void setSquelchLevel(float signal_level_in);
|
||||
float getSquelchLevel();
|
||||
|
||||
void setOutputDevice(int device_id);
|
||||
int getOutputDevice();
|
||||
|
||||
private:
|
||||
std::atomic<std::string *> label; //
|
||||
bool terminated; //
|
||||
|
||||
Reference in New Issue
Block a user