NOOP, add header-guards and namespace to CA backend
This commit is contained in:
parent
3c7b468c02
commit
efbc00651f
@ -19,6 +19,8 @@
|
||||
#include <glibmm.h>
|
||||
#include "coreaudio_pcmio.h"
|
||||
|
||||
using namespace ARDOUR;
|
||||
|
||||
/* abstraction for deprecated CoreAudio */
|
||||
|
||||
static OSStatus GetPropertyWrapper (
|
||||
|
@ -16,6 +16,9 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef __libbackend_coreaudio_pcmio_h__
|
||||
#define __libbackend_coreaudio_pcmio_h__
|
||||
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#include <CoreAudio/CoreAudio.h>
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
@ -31,6 +34,8 @@
|
||||
#define AUHAL_INPUT_ELEMENT 1
|
||||
|
||||
|
||||
namespace ARDOUR {
|
||||
|
||||
class CoreAudioPCM {
|
||||
public:
|
||||
CoreAudioPCM (void);
|
||||
@ -142,7 +147,7 @@ private:
|
||||
AudioDeviceID *created_device);
|
||||
|
||||
|
||||
AudioUnit _auhal;
|
||||
::AudioUnit _auhal;
|
||||
AudioDeviceID* _device_ids;
|
||||
AudioBufferList* _input_audio_buffer_list;
|
||||
AudioBufferList* _output_audio_buffer_list;
|
||||
@ -188,3 +193,7 @@ private:
|
||||
|
||||
pthread_mutex_t _discovery_lock;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif /* __libbackend_coreaudio_pcmio_h__ */
|
||||
|
@ -17,9 +17,12 @@
|
||||
*/
|
||||
|
||||
#include <sstream>
|
||||
#include "coremidi_io.h"
|
||||
#include <CoreAudio/HostTime.h>
|
||||
|
||||
#include "coremidi_io.h"
|
||||
|
||||
using namespace ARDOUR;
|
||||
|
||||
static void notifyProc (const MIDINotification *message, void *refCon) {
|
||||
CoreMidiIo *self = static_cast<CoreMidiIo*>(refCon);
|
||||
self->notify_proc(message);
|
||||
@ -45,7 +48,7 @@ static void midiInputCallback(const MIDIPacketList *list, void *procRef, void *s
|
||||
|
||||
static std::string getPropertyString (MIDIObjectRef object, CFStringRef key)
|
||||
{
|
||||
CFStringRef name = nil;
|
||||
CFStringRef name = NULL;
|
||||
std::string rv = "";
|
||||
if (noErr == MIDIObjectGetStringProperty(object, key, &name)) {
|
||||
const CFIndex size = CFStringGetMaximumSizeForEncoding(CFStringGetLength(name), kCFStringEncodingUTF8);
|
||||
|
@ -16,6 +16,9 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef __libbackend_coremidi_io_h__
|
||||
#define __libbackend_coremidi_io_h__
|
||||
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#include <CoreAudio/CoreAudio.h>
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
@ -30,7 +33,9 @@
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include "pbd/ringbuffer.h"
|
||||
|
||||
typedef struct _CoreMIDIPacket {
|
||||
namespace ARDOUR {
|
||||
|
||||
typedef struct _CoreMIDIPacket {
|
||||
MIDITimeStamp timeStamp;
|
||||
UInt16 length;
|
||||
Byte data[256];
|
||||
@ -113,3 +118,7 @@ private:
|
||||
|
||||
pthread_mutex_t _discovery_lock;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif /* __libbackend_coremidi_io */
|
||||
|
Loading…
Reference in New Issue
Block a user