2021-08-19 Fred Gleason <fredg@paravelsystems.com>

* Refactored the JACK driver in caed(8) to use virtual inheritance.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-08-19 16:23:26 -04:00
parent 8888e4cc82
commit 4d73f9bccc
11 changed files with 1888 additions and 20 deletions

View File

@@ -49,7 +49,6 @@
#include "cae.h"
volatile bool exiting=false;
//RDConfig *rd_config;
#ifdef JACK
extern jack_client_t *jack_client;
#endif // JACK
@@ -281,6 +280,21 @@ MainObject::MainObject(QObject *parent)
delete dvr;
}
//
// JACK Devices
//
dvr=CaeDriverFactory(RDStation::Jack,this);
if(dvr->initialize(&next_card)) {
connect(dvr,SIGNAL(playStateChanged(int,int,int)),
this,SLOT(statePlayUpdate(int,int,int)));
connect(dvr,SIGNAL(recordStateChanged(int,int,int)),
this,SLOT(stateRecordUpdate(int,int,int)));
d_drivers.push_back(dvr);
}
else {
delete dvr;
}
//
// Probe Capabilities
//