Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1877 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
8064c87e0f
2 changed files with 3 additions and 21 deletions
  1. +2
    -13
      macosx/JackCoreAudioDriver.cpp
  2. +1
    -8
      macosx/JackCoreAudioDriver.h

+ 2
- 13
macosx/JackCoreAudioDriver.cpp View File

@@ -251,9 +251,6 @@ OSStatus JackCoreAudioDriver::DeviceNotificationCallback(AudioDeviceID inDevice,
case kAudioDeviceProcessorOverload:
JackLog("JackCoreAudioDriver::DeviceNotificationCallback kAudioDeviceProcessorOverload\n");
#ifdef DEBUG
//driver->fLogFile->Capture(AudioGetCurrentHostTime() - AudioConvertNanosToHostTime(LOG_SAMPLE_DURATION * 1000000), AudioGetCurrentHostTime(), true, "Captured Latency Log for I/O Cycle Overload\n");
#endif
driver->NotifyXRun(GetMicroSeconds());
break;
@@ -423,18 +420,10 @@ OSStatus JackCoreAudioDriver::GetTotalChannels(AudioDeviceID device, int* channe

JackCoreAudioDriver::JackCoreAudioDriver(const char* name, JackEngine* engine, JackSynchro** table)
: JackAudioDriver(name, engine, table), fJackInputData(NULL), fDriverOutputData(NULL), fState(false)
{
#ifdef DEBUG
//fLogFile = new CALatencyLog("jackmp_latency", ".txt");
#endif
}
{}

JackCoreAudioDriver::~JackCoreAudioDriver()
{
#ifdef DEBUG
//delete fLogFile;
#endif
}
{}

int JackCoreAudioDriver::SetupDevices(const char* capture_driver_uid, const char* playback_driver_uid, char* capture_driver_name, char* playback_driver_name)
{


+ 1
- 8
macosx/JackCoreAudioDriver.h View File

@@ -26,13 +26,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include "JackAudioDriver.h"
#include "JackTime.h"

#include "/Developer/Examples/CoreAudio/PublicUtility/CALatencyLog.h"

namespace Jack
{

#define kVersion 102
#define LOG_SAMPLE_DURATION 3 // in millisecond

typedef UInt8 CAAudioHardwareDeviceSectionID;
#define kAudioDeviceSectionInput ((CAAudioHardwareDeviceSectionID)0x01)
@@ -51,11 +48,7 @@ class JackCoreAudioDriver : public JackAudioDriver

private:
#ifdef DEBUG
//CALatencyLog* fLogFile;
#endif

AudioUnit fAUHAL;
AudioUnit fAUHAL;

AudioBufferList* fJackInputData;
AudioBufferList* fDriverOutputData;


Loading…
Cancel
Save