[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/engine CoreAudioDriver.cpp CoreAud...
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/engine CoreAudioDriver.cpp CoreAud... |
Date: |
Fri, 21 Nov 2008 13:40:17 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 08/11/21 13:40:17
Modified files:
src/engine : CoreAudioDriver.cpp CoreAudioDriver.h
Log message:
* add the basic includes for coreaudio stuff
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/engine/CoreAudioDriver.cpp?cvsroot=traverso&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/traverso/src/engine/CoreAudioDriver.h?cvsroot=traverso&r1=1.1&r2=1.2
Patches:
Index: CoreAudioDriver.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/engine/CoreAudioDriver.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CoreAudioDriver.cpp 11 Nov 2008 13:42:37 -0000 1.1
+++ CoreAudioDriver.cpp 21 Nov 2008 13:40:14 -0000 1.2
@@ -1,8 +1,7 @@
/*
Copyright (C) 2008 Remon Sijrier
-
-(November 2008) Ported to C++ for Traverso by Remon Sijrier
-Copyright (C) 2001 Paul Davis
+Copyright (C) Grame, 2003.
+Copyright (C) Johnny Petrantoni, 2003.
This file is part of Traverso
@@ -20,17 +19,52 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ Grame Research Laboratory, 9, rue du Garet 69001 Lyon - France
+ address@hidden
+
+ Johnny Petrantoni, address@hidden - Italy, Rome.
+
+ Jan 30, 2004: Johnny Petrantoni: first code of the coreaudio driver, based on
portaudio driver by Stephane Letz.
+ Feb 02, 2004: Johnny Petrantoni: fixed null cycle, removed double copy of
buffers in AudioRender, the driver works fine (tested with Built-in Audio and
Hammerfall RME), but no cpu load is displayed.
+ Feb 03, 2004: Johnny Petrantoni: some little fix.
+ Feb 03, 2004: Stephane Letz: some fix in AudioRender.cpp code.
+ Feb 03, 2004: Johnny Petrantoni: removed the default device stuff (useless,
in jackosx, because JackPilot manages this behavior), the device must be
specified. and all parameter must be correct.
+ Feb 04, 2004: Johnny Petrantoni: now the driver supports interfaces with
multiple interleaved streams (such as the MOTU 828).
+ Nov 05, 2004: S.Letz: correct management of -I option for use with JackPilot.
+ Nov 15, 2004: S.Letz: Set a default value for deviceID.
+ Nov 30, 2004: S.Letz: In coreaudio_driver_write : clear to avoid playing
dirty buffers when the client does not produce output anymore.
+ Dec 05, 2004: S.Letz: XRun detection
+ Dec 09, 2004: S.Letz: Dynamic buffer size change
+ Dec 23, 2004: S.Letz: Correct bug in dynamic buffer size change : update
period_usecs
+ Jan 20, 2005: S.Letz: Almost complete rewrite using AUHAL.
+ May 20, 2005: S.Letz: Add "systemic" latencies management.
+ Jun 06, 2005: S.Letz: Remove the "-I" parameter, change the semantic of "-n"
parameter : -n (driver name) now correctly uses the PropertyDeviceUID
+ (persistent accross reboot...) as
the identifier for the used coreaudio driver.
+ Jun 14, 2005: S.Letz: Since the "-I" parameter is not used anymore, rename
the "systemic" latencies management parametes "-I" and "-O" like for the ALSA
driver.
+ Aug 16, 2005: S.Letz: Remove get_device_id_from_num, use get_default_device
instead. If the -n option is not used or the device name cannot
+ be found, the default device is
used. Note: the default device can be used only if both default input and
default output are the same.
+ Dec 19, 2005: S.Letz: Add -d option (display_device_names).
+ Apri 7, 2006: S.Letz: Synchronization with the jackdmp coreaudio driver
version: improve half-duplex management.
+ May 17, 2006: S.Letz: Minor fix in driver_initialize.
+ May 18, 2006: S.Letz: Document sample rate default value.
+ May 31, 2006: S.Letz: Apply Rui patch for more consistent driver parameter
naming.
+ Dec 04, 2007: S.Letz: Fix a bug in sample rate management (occuring in
particular with "aggregate" devices).
+ Dec 05, 2007: S.Letz: Correct sample_rate management in Open. Better handling
in sample_rate change listener.
+ Nov 11, 2008: Remon Sijrier: Ported to C++ for Traverso
+
*/
-/* CoreAudio driver based on jack-audio-connection-kit-0.xxx.x
core_audio_driver.c */
+/* CoreAudio driver based on jack-audio-connection-kit-0.xxx.x
coreaudio_driver.c */
#include "CoreAudioDriver.h"
#include "AudioChannel.h"
#include <Utils.h>
-#include "Debugger.h"
+#include <stdio.h>
+#include <string.h>
+#include "Debugger.h"
CoreAudioDriver::CoreAudioDriver(AudioDevice * dev, int rate, nframes_t
bufferSize)
: Driver(dev, rate, bufferSize)
@@ -48,4 +82,6 @@
return -1;
}
+
+
//eof
Index: CoreAudioDriver.h
===================================================================
RCS file: /sources/traverso/traverso/src/engine/CoreAudioDriver.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CoreAudioDriver.h 11 Nov 2008 13:42:37 -0000 1.1
+++ CoreAudioDriver.h 21 Nov 2008 13:40:16 -0000 1.2
@@ -1,8 +1,9 @@
/*
Copyright (C) 2008 Remon Sijrier
+Copyright (C) Grame, 2003.
+Copyright (C) Johnny Petrantoni, 2003.
(November 2008) Ported to C++ for Traverso by Remon Sijrier
-Copyright (C) 2001 Paul Davis
This file is part of Traverso
@@ -20,6 +21,13 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+Grame Research Laboratory, 9, rue du Garet 69001 Lyon - France
address@hidden
+
+Johnny Petrantoni, address@hidden - Italy, Rome.
+
+30-01-04, Johnny Petrantoni: first code of the coreaudio driver.
+
*/
#ifndef CORE_AUDIO_DRIVER_H
@@ -27,6 +35,12 @@
#include "Driver.h"
+#include <CoreAudio/CoreAudio.h>
+#include <AudioToolbox/AudioConverter.h>
+#include <AudioUnit/AudioUnit.h>
+
+#include "defines.h"
+
class CoreAudioDriver : public Driver
{
@@ -46,6 +60,13 @@
// int restart();
int setup(bool capture=true, bool playback=true, const QString&
cardDevice="none");
+
+private:
+ AudioUnit au_hal;
+ AudioBufferList* input_list;
+ AudioDeviceID device_id;
+ int state;
+
};
#endif
- [Traverso-commit] traverso/src/engine CoreAudioDriver.cpp CoreAud...,
Remon Sijrier <=