Commit 7fa3d0ff authored by jcacerec's avatar jcacerec
Browse files

portest4 to test binding to same socket

parent 1ff65215
This diff is collapsed.
......@@ -51,7 +51,7 @@ using std::cout; using std::endl;
//*******************************************************************************
DataProtocol::DataProtocol(JackTrip* jacktrip,
const runModeT runmode,
int /*incoming_port*/, int /*outgoing_port*/) :
int incoming_port, int outgoing_port) :
mStopped(false), mHasPacketsToReceive(false), mRunMode(runmode), mJackTrip(jacktrip)
{}
......
......@@ -63,16 +63,14 @@ QMutex JackAudioInterface::sJackMutex;
//*******************************************************************************
JackAudioInterface::JackAudioInterface(JackTrip* jacktrip,
int NumInChans, int NumOutChans,
audioBitResolutionT AudioBitResolution,
char* ClienName) :
audioBitResolutionT AudioBitResolution) :
mNumInChans(NumInChans), mNumOutChans(NumOutChans),
mAudioBitResolution(AudioBitResolution*8), mBitResolutionMode(AudioBitResolution),
mClient(NULL),
mClientName(ClienName),
mJackTrip(jacktrip)
{
//setupClient();
//setProcessCallback();
setupClient();
setProcessCallback();
}
......@@ -92,18 +90,11 @@ JackAudioInterface::~JackAudioInterface()
}
//*******************************************************************************
void JackAudioInterface::setup()
{
setupClient();
setProcessCallback();
}
//*******************************************************************************
void JackAudioInterface::setupClient()
{
const char* client_name = mClientName;
// \todo Get this name from global variable
const char* client_name = "JackTrip";//APP_NAME;
const char* server_name = NULL;
jack_options_t options = JackNoStartServer;
jack_status_t status;
......@@ -317,7 +308,6 @@ void JackAudioInterface::setProcessCallback()
{
//std::cerr << "Could not set the process callback" << std::endl;
//return(code);
(void) code; // to avoid compiler warnings
throw std::runtime_error("Could not set the Jack process callback");
//std::exit(1);
}
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment