|
|
|
@@ -16,10 +16,10 @@ 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., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#pragma warning (disable : 4786)
|
|
|
|
*/ |
|
|
|
|
|
|
|
#ifdef WIN32 |
|
|
|
#pragma warning (disable : 4786) |
|
|
|
#endif |
|
|
|
|
|
|
|
#include "JackDriver.h" |
|
|
|
@@ -136,7 +136,7 @@ int JackDriver::Open(jack_nframes_t nframes, |
|
|
|
strcpy(fPlaybackDriverName, playback_driver_name); |
|
|
|
|
|
|
|
fEngineControl->fPeriodUsecs = (jack_time_t)floor((((float)nframes) / (float)samplerate) * 1000000.0f); |
|
|
|
if (fEngineControl->fTimeOutUsecs == 0) /* usecs; if zero, use 10 period size. */ |
|
|
|
if (fEngineControl->fTimeOutUsecs == 0) /* usecs; if zero, use 2 period size. */ |
|
|
|
fEngineControl->fTimeOutUsecs = (jack_time_t)(2.f * fEngineControl->fPeriodUsecs); |
|
|
|
|
|
|
|
fGraphManager->DirectConnect(fClientControl->fRefNum, fClientControl->fRefNum); // Connect driver to itself for sync |
|
|
|
|