1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700
|
/*
Jack audio driver interface.
Copyright (c) 2003-2006 stefan kersten.
====================================================================
SuperCollider real time audio synthesis system
Copyright (c) 2002 James McCartney. All rights reserved.
http://www.audiosynth.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "SC_CoreAudio.h"
#include "SC_HiddenWorld.h"
#include "SC_Prototypes.h"
#include "SC_StringParser.h"
#include <jack/jack.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
// =====================================================================
// Constants
static const char* kJackDriverIdent = "JackDriver";
static const char* kJackDefaultClientName = "SuperCollider";
// =====================================================================
// Timing
// =====================================================================
// SC_JackDLL
//
// Delay-Locked-Loop after
// Fons Adriaensen, "Using a DLL to filter time"
#define SC_JACK_DLL_BW 0.012
class SC_JackDLL
{
public:
SC_JackDLL()
: m_b(0.), m_c(0.),
m_t0(0.), m_t1(0.), m_e2(0.),
m_np(0), m_ei(0.), m_ec(0)
{ }
void Reset(double sampleRate, jack_nframes_t periodFrames, double bandWidth, double t)
{
// compute coefficients
m_np = periodFrames;
m_b = 2*M_PI*bandWidth*m_np/sampleRate;
m_c = m_b*m_b/2.;
// initialize filter
double tp = m_np/sampleRate;
m_e2 = tp;
m_t0 = t;
m_t1 = t + tp;
// initialize statistics
m_ei = 0.;
m_ec = 0;
}
void Update(double t)
{
// compute error
double e = m_e = t - m_t1;
// update filter
m_t0 = m_t1;
m_t1 += m_b * e + m_e2;
m_e2 += m_c * e;
// collect statistics
m_ei += e;
m_ec++;
}
double PeriodTime() const { return m_t0; }
double NextPeriodTime() const { return m_t1; }
double Period() const { return m_t1 - m_t0; }
double SampleRate() const { return m_np/Period(); }
double Error() const { return m_e; }
double AvgError() const { return m_ec > 0 ? m_ei/m_ec : 0; }
private:
double m_b, m_c;
double m_t0, m_t1, m_e, m_e2;
jack_nframes_t m_np;
double m_ei;
int m_ec;
};
static inline int64 sc_JackOSCTime(const struct timeval& tv)
{
return ((int64)(tv.tv_sec + kSECONDS_FROM_1900_to_1970) << 32)
+ (int64)(tv.tv_usec * kMicrosToOSCunits);
}
static inline int64 sc_JackOSCTime()
{
struct timeval tv;
gettimeofday(&tv, 0);
return sc_JackOSCTime(tv);
}
static inline double sc_JackOSCTimeSeconds()
{
return (uint64)sc_JackOSCTime() * kOSCtoSecs;
}
int32 server_timeseed()
{
static int32 count = 0;
struct timeval tv;
gettimeofday(&tv, 0);
return (int32)tv.tv_sec ^ (int32)tv.tv_usec ^ count--;
}
int64 oscTimeNow()
{
return sc_JackOSCTime();
}
void initializeScheduler()
{
}
// =====================================================================
// Audio driver
static int sc_jack_process_cb(jack_nframes_t numFrames, void *arg);
static int sc_jack_bufsize_cb(jack_nframes_t numSamples, void *arg);
static int sc_jack_srate_cb(jack_nframes_t sampleRate, void *arg);
static int sc_jack_graph_order_cb(void *arg);
static void sc_jack_shutdown_cb(void *arg);
typedef jack_default_audio_sample_t sc_jack_sample_t;
struct SC_JackPortList
{
int mSize;
jack_port_t** mPorts;
sc_jack_sample_t** mBuffers;
SC_JackPortList(jack_client_t *client, int numPorts, int type);
~SC_JackPortList();
};
class SC_JackDriver : public SC_AudioDriver
{
jack_client_t *mClient;
SC_JackPortList *mInputList;
SC_JackPortList *mOutputList;
double mMaxOutputLatency;
SC_JackDLL mDLL;
protected:
// driver interface methods
virtual bool DriverSetup(int* outNumSamplesPerCallback, double* outSampleRate);
virtual bool DriverStart();
virtual bool DriverStop();
public:
SC_JackDriver(struct World *inWorld);
virtual ~SC_JackDriver();
// process loop
void Run();
// reset state
void Reset(double sampleRate, int bufferSize);
// notifications
bool BufferSizeChanged(int numSamples);
bool SampleRateChanged(double sampleRate);
bool GraphOrderChanged();
bool XRun();
private:
void ConnectPorts(const char * src, const char * dst)
{
int err = jack_connect(mClient, src, dst);
scprintf("%s: %s %s to %s\n",
kJackDriverIdent,
err ? "couldn't connect " : "connected ",
src, dst);
}
void ConnectClientInputs(const char * pattern);
void ConnectClientOutputs(const char * pattern);
};
SC_AudioDriver* SC_NewAudioDriver(struct World *inWorld)
{
return new SC_JackDriver(inWorld);
}
// =====================================================================
// SC_JackPortList
SC_JackPortList::SC_JackPortList(jack_client_t *client, int numPorts, int type)
: mSize(numPorts), mPorts(0), mBuffers(0)
{
const char *fmt = (type == JackPortIsInput ? "in_%d" : "out_%d");
char portname[32];
mPorts = new jack_port_t*[mSize];
mBuffers = new float*[mSize];
for (int i = 0; i < mSize; i++) {
snprintf(portname, 32, fmt, i+1);
mPorts[i] = jack_port_register(
client, portname,
JACK_DEFAULT_AUDIO_TYPE,
type, 0);
mBuffers[i] = 0;
}
}
SC_JackPortList::~SC_JackPortList()
{
delete [] mPorts;
delete [] mBuffers;
}
// =====================================================================
// JACK callbacks
int sc_jack_process_cb(jack_nframes_t numFrames, void *arg)
{
((SC_JackDriver*)arg)->Run();
return 0;
}
int sc_jack_bufsize_cb(jack_nframes_t numSamples, void *arg)
{
return !((SC_JackDriver*)arg)->BufferSizeChanged((int)numSamples);
}
int sc_jack_srate_cb(jack_nframes_t sampleRate, void *arg)
{
return !((SC_JackDriver*)arg)->SampleRateChanged((double)sampleRate);
}
int sc_jack_graph_order_cb(void* arg)
{
return !((SC_JackDriver*)arg)->GraphOrderChanged();
}
int sc_jack_xrun_cb(void* arg)
{
return !((SC_JackDriver*)arg)->XRun();
}
void sc_jack_shutdown_cb(void* arg)
{
scprintf("%s: killed by jack\n", kJackDriverIdent);
((World*)arg)->hw->mQuitProgram->Release();
}
// =====================================================================
// SC_JackDriver (JACK)
SC_JackDriver::SC_JackDriver(struct World *inWorld)
: SC_AudioDriver(inWorld),
mClient(0),
mInputList(0),
mOutputList(0),
mMaxOutputLatency(0.)
{ }
SC_JackDriver::~SC_JackDriver()
{
if (mClient) {
jack_client_close(mClient);
}
delete mInputList;
delete mOutputList;
}
// ====================================================================
// NOTE: for now, in lieu of a mechanism that passes generic options to
// the platform driver, we rely on environment variables:
//
// SC_JACK_DEFAULT_INPUTS: which outports to connect to
// SC_JACK_DEFAULT_OUTPUTS: which inports to connect to
// ====================================================================
bool SC_JackDriver::DriverSetup(int* outNumSamples, double* outSampleRate)
{
char* clientName = 0;
char* serverName = 0;
if (mWorld->hw->mInDeviceName && (strlen(mWorld->hw->mInDeviceName) > 0)) {
// parse string <serverName>:<clientName>
SC_StringParser sp(mWorld->hw->mInDeviceName, ':');
if (!sp.AtEnd()) serverName = strdup(sp.NextToken());
if (!sp.AtEnd()) clientName = strdup(sp.NextToken());
if (clientName == 0) {
// no semicolon found
clientName = serverName;
serverName = 0;
} else if (strlen(clientName) == 0) {
free(clientName);
clientName = 0;
}
}
#ifdef SC_USE_JACK_CLIENT_NEW
// old style client startup for Jack <0.100 -- AG
if (clientName) {
mClient = jack_client_new(clientName);
} else {
clientName = strdup("SuperCollider");
mClient = jack_client_new(clientName);
if (mClient == 0) {
char uniqueName[64];
sprintf(uniqueName, "SuperCollider-%d", getpid());
clientName = strdup(uniqueName);
mClient = jack_client_new(uniqueName);
}
}
if (mClient) scprintf("%s: client name is '%s'\n", kJackDriverIdent, clientName);
if (serverName) free(serverName); if (clientName) free(clientName);
if (mClient == 0) return false;
#else
mClient = jack_client_open(
clientName ? clientName : kJackDefaultClientName,
serverName ? JackServerName : JackNullOption,
NULL, serverName);
if (serverName) free(serverName); if (clientName) free(clientName);
if (mClient == 0) return false;
scprintf("%s: client name is '%s'\n", kJackDriverIdent, jack_get_client_name(mClient));
#endif
// create jack I/O ports
mInputList = new SC_JackPortList(mClient, mWorld->mNumInputs, JackPortIsInput);
mOutputList = new SC_JackPortList(mClient, mWorld->mNumOutputs, JackPortIsOutput);
// register callbacks
jack_set_process_callback(mClient, sc_jack_process_cb, this);
jack_set_buffer_size_callback(mClient, sc_jack_bufsize_cb, this);
jack_set_sample_rate_callback(mClient, sc_jack_srate_cb, this);
jack_set_graph_order_callback(mClient, sc_jack_graph_order_cb, this);
jack_set_xrun_callback(mClient, sc_jack_xrun_cb, this);
jack_on_shutdown(mClient, sc_jack_shutdown_cb, mWorld);
*outNumSamples = (int)jack_get_buffer_size(mClient);
*outSampleRate = (double)jack_get_sample_rate(mClient);
return true;
}
void SC_JackDriver::ConnectClientInputs(const char * pattern)
{
const char **ports = jack_get_ports (mClient, pattern, NULL, JackPortIsOutput);
jack_port_t ** ourports = mInputList->mPorts;
if (!ports)
return;
int i = 0;
while (ports[i]) {
if (i == mInputList->mSize)
break;
const char * src = ports[i];
const char * dst = jack_port_name(ourports[i]);
ConnectPorts(src, dst);
++i;
}
free(ports);
}
void SC_JackDriver::ConnectClientOutputs(const char * pattern)
{
const char **ports = jack_get_ports (mClient, pattern, NULL, JackPortIsInput);
jack_port_t ** ourports = mOutputList->mPorts;
if (!ports)
return;
int i = 0;
while (ports[i]) {
if (i == mOutputList->mSize)
break;
const char * src = jack_port_name(ourports[i]);
const char * dst = ports[i];
ConnectPorts(src, dst);
++i;
}
free(ports);
}
bool SC_JackDriver::DriverStart()
{
if (!mClient) return false;
int err;
SC_StringParser sp;
jack_port_t **ports;
int numPorts;
// activate client
err = jack_activate(mClient);
if (err) {
scprintf("%s: couldn't activate jack client\n", kJackDriverIdent);
return false;
}
// connect default inputs
sp = SC_StringParser(getenv("SC_JACK_DEFAULT_INPUTS"), ',');
ports = mInputList->mPorts;
numPorts = mInputList->mSize;
for (int i = 0; !sp.AtEnd() && (i < numPorts); i++) {
const char *thatPortName = sp.NextToken();
if (i == 0 && sp.AtEnd() && (strchr(thatPortName, ':') == 0)) {
ConnectClientInputs(thatPortName);
break;
}
const char *thisPortName = jack_port_name(ports[i]);
if (thisPortName && thatPortName)
ConnectPorts(thatPortName, thisPortName);
}
// connect default outputs
sp = SC_StringParser(getenv("SC_JACK_DEFAULT_OUTPUTS"), ',');
ports = mOutputList->mPorts;
numPorts = mOutputList->mSize;
for (int i = 0; !sp.AtEnd() && (i < numPorts); i++) {
const char *thatPortName = sp.NextToken();
if (i == 0 && sp.AtEnd() && (strchr(thatPortName, ':') == 0)) {
ConnectClientOutputs(thatPortName);
break;
}
const char *thisPortName = jack_port_name(ports[i]);
if (thisPortName && thatPortName)
ConnectPorts(thisPortName, thatPortName);
}
return true;
}
bool SC_JackDriver::DriverStop()
{
int err = 0;
if (mClient) err = jack_deactivate(mClient);
return err == 0;
}
void SC_JackDriver::Run()
{
jack_client_t* client = mClient;
World* world = mWorld;
#if SC_JACK_USE_DLL
mDLL.Update(sc_JackOSCTimeSeconds());
#if SC_JACK_DEBUG_DLL
static int tick = 0;
if (++tick >= 10) {
tick = 0;
scprintf("DLL: t %.6f p %.9f sr %.6f e %.9f avg(e) %.9f inc %.9f\n",
mDLL.PeriodTime(), mDLL.Period(), mDLL.SampleRate(),
mDLL.Error(), mDLL.AvgError(), mOSCincrement * kOSCtoSecs);
}
#endif
#else
struct timeval hostTime;
gettimeofday(&hostTime, 0);
double hostSecs = (double)hostTime.tv_sec + (double)hostTime.tv_usec * 1e-6;
double sampleTime = (double)(jack_frame_time(client) + jack_frames_since_cycle_start(client));
if (mStartHostSecs == 0) {
mStartHostSecs = hostSecs;
mStartSampleTime = sampleTime;
} else {
double instSampleRate = (sampleTime - mPrevSampleTime) / (hostSecs - mPrevHostSecs);
double smoothSampleRate = mSmoothSampleRate;
smoothSampleRate = smoothSampleRate + 0.002 * (instSampleRate - smoothSampleRate);
if (fabs(smoothSampleRate - mSampleRate) > 10.) {
smoothSampleRate = mSampleRate;
}
mOSCincrement = (int64)(mOSCincrementNumerator / smoothSampleRate);
mSmoothSampleRate = smoothSampleRate;
#if 0
double avgSampleRate = (sampleTime - mStartSampleTime)/(hostSecs - mStartHostSecs);
double jitter = (smoothSampleRate * (hostSecs - mPrevHostSecs)) - (sampleTime - mPrevSampleTime);
double drift = (smoothSampleRate - mSampleRate) * (hostSecs - mStartHostSecs);
#endif
}
mPrevHostSecs = hostSecs;
mPrevSampleTime = sampleTime;
#endif
try {
mFromEngine.Free();
mToEngine.Perform();
mOscPacketsToEngine.Perform();
int numInputs = mInputList->mSize;
int numOutputs = mOutputList->mSize;
jack_port_t **inPorts = mInputList->mPorts;
jack_port_t **outPorts = mOutputList->mPorts;
sc_jack_sample_t **inBuffers = mInputList->mBuffers;
sc_jack_sample_t **outBuffers = mOutputList->mBuffers;
int numSamples = NumSamplesPerCallback();
int bufFrames = mWorld->mBufLength;
int numBufs = numSamples / bufFrames;
float *inBuses = mWorld->mAudioBus + mWorld->mNumOutputs * bufFrames;
float *outBuses = mWorld->mAudioBus;
int32 *inTouched = mWorld->mAudioBusTouched + mWorld->mNumOutputs;
int32 *outTouched = mWorld->mAudioBusTouched;
int minInputs = sc_min(numInputs, (int)mWorld->mNumInputs);
int minOutputs = sc_min(numOutputs, (int)mWorld->mNumOutputs);
int bufFramePos = 0;
// cache I/O buffers
for (int i = 0; i < minInputs; ++i) {
inBuffers[i] = (sc_jack_sample_t*)jack_port_get_buffer(inPorts[i], numSamples);
}
for (int i = 0; i < minOutputs; ++i) {
outBuffers[i] = (sc_jack_sample_t*)jack_port_get_buffer(outPorts[i], numSamples);
}
// main loop
#if SC_JACK_USE_DLL
int64 oscTime = mOSCbuftime = (int64)((mDLL.PeriodTime() - mMaxOutputLatency) * kSecondsToOSCunits + .5);
// int64 oscInc = mOSCincrement = (int64)(mOSCincrementNumerator / mDLL.SampleRate());
int64 oscInc = mOSCincrement = (int64)((mDLL.Period() / numBufs) * kSecondsToOSCunits + .5);
mSmoothSampleRate = mDLL.SampleRate();
double oscToSamples = mOSCtoSamples = mSmoothSampleRate * kOSCtoSecs /* 1/pow(2,32) */;
#else
int64 oscTime = mOSCbuftime = sc_JackOSCTime(hostTime) - (int64)(mMaxOutputLatency * kSecondsToOSCunits + .5);
int64 oscInc = mOSCincrement;
double oscToSamples = mOSCtoSamples;
#endif
for (int i = 0; i < numBufs; ++i, mWorld->mBufCounter++, bufFramePos += bufFrames) {
int32 bufCounter = mWorld->mBufCounter;
int32 *tch;
// copy+touch inputs
tch = inTouched;
for (int k = 0; k < minInputs; ++k) {
sc_jack_sample_t *src = inBuffers[k] + bufFramePos;
float *dst = inBuses + k * bufFrames;
for (int n = 0; n < bufFrames; ++n) {
*dst++ = *src++;
}
*tch++ = bufCounter;
}
// run engine
int64 schedTime;
int64 nextTime = oscTime + oscInc;
while ((schedTime = mScheduler.NextTime()) <= nextTime) {
float diffTime = (float)(schedTime - oscTime) * oscToSamples + 0.5;
float diffTimeFloor = floor(diffTime);
world->mSampleOffset = (int)diffTimeFloor;
world->mSubsampleOffset = diffTime - diffTimeFloor;
if (world->mSampleOffset < 0) world->mSampleOffset = 0;
else if (world->mSampleOffset >= world->mBufLength) world->mSampleOffset = world->mBufLength-1;
SC_ScheduledEvent event = mScheduler.Remove();
event.Perform();
}
world->mSampleOffset = 0;
world->mSubsampleOffset = 0.f;
World_Run(world);
// copy touched outputs
tch = outTouched;
for (int k = 0; k < minOutputs; ++k) {
sc_jack_sample_t *dst = outBuffers[k] + bufFramePos;
if (*tch++ == bufCounter) {
float *src = outBuses + k * bufFrames;
for (int n = 0; n < bufFrames; ++n) {
*dst++ = *src++;
}
} else {
for (int n = 0; n < bufFrames; ++n) {
*dst++ = 0.0f;
}
}
}
// advance OSC time
mOSCbuftime = oscTime = nextTime;
}
} catch (std::exception& exc) {
scprintf("%s: exception in real time: %s\n", kJackDriverIdent, exc.what());
} catch (...) {
scprintf("%s: unknown exception in real time\n", kJackDriverIdent);
}
double cpuUsage = (double)jack_cpu_load(mClient);
mAvgCPU = mAvgCPU + 0.1 * (cpuUsage - mAvgCPU);
if (cpuUsage > mPeakCPU || --mPeakCounter <= 0) {
mPeakCPU = cpuUsage;
mPeakCounter = mMaxPeakCounter;
}
mAudioSync.Signal();
}
void SC_JackDriver::Reset(double sampleRate, int bufferSize)
{
mSampleRate = mSmoothSampleRate = sampleRate;
mNumSamplesPerCallback = bufferSize;
World_SetSampleRate(mWorld, mSampleRate);
mBuffersPerSecond = mSampleRate / mNumSamplesPerCallback;
mMaxPeakCounter = (int)mBuffersPerSecond;
mOSCincrement = (int64)(mOSCincrementNumerator / mSampleRate);
#if SC_JACK_USE_DLL
mDLL.Reset(
mSampleRate,
mNumSamplesPerCallback,
SC_JACK_DLL_BW,
sc_JackOSCTimeSeconds());
#endif
}
bool SC_JackDriver::BufferSizeChanged(int numSamples)
{
Reset(jack_get_sample_rate(mClient), numSamples);
return true;
}
bool SC_JackDriver::SampleRateChanged(double sampleRate)
{
Reset(sampleRate, jack_get_buffer_size(mClient));
return true;
}
bool SC_JackDriver::GraphOrderChanged()
{
SC_JackPortList* outputs = mOutputList;
jack_nframes_t lat = 0;
for (int i=0; i < outputs->mSize; ++i) {
jack_nframes_t portLat = jack_port_get_total_latency(mClient, outputs->mPorts[i]);
if (portLat > lat) lat = portLat;
}
double maxLat = (double)lat / mSampleRate;
if (maxLat != mMaxOutputLatency) {
mMaxOutputLatency = maxLat;
scprintf("%s: max output latency %.1f ms\n", kJackDriverIdent, maxLat * 1e3);
}
return true;
}
bool SC_JackDriver::XRun()
{
Reset(mSampleRate, mNumSamplesPerCallback);
return true;
}
// EOF
|