Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
adfernandes committed Feb 18, 2013
0 parents commit 18c87cf
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Core Audio Utility Classes (Version 1.01, 2012-06-26).patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff -uNr CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp
--- CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp 2012-06-26 18:24:03.000000000 -0400
+++ CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp 2012-09-17 17:09:25.000000000 -0400
@@ -166,7 +166,7 @@
mBottomRight.h = mBottomRight.v = 0;

SizeControl(mCarbonPane, 0, 0);
- if (err = CreateUI(mXOffset, mYOffset))
+ if ((err = CreateUI(mXOffset, mYOffset)))
return err;

// we should only resize the control if a subclass has embedded
@@ -260,7 +260,7 @@
/* <-- kEventParamImageSize (out, typeHISize)
* On exit, contains the size of the entire scrollable view.
*/
- HISize originalSize = { mBottomRight.h, mBottomRight.v };
+ HISize originalSize = { static_cast<CGFloat>(mBottomRight.h), static_cast<CGFloat>(mBottomRight.v) };
verify_noerr(SetEventParameter(event, kEventParamImageSize, typeHISize, sizeof(HISize), &originalSize));

// [2/4]
diff -uNr CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp
--- CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp 2012-06-26 18:24:03.000000000 -0400
+++ CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp 2012-09-26 14:09:57.000000000 -0400
@@ -157,7 +157,7 @@
try {
AUMIDIEffectBase *This = static_cast<AUMIDIEffectBase *>(inComponentStorage);
if (This == NULL) return paramErr;
- result = This->MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);
+ result = This->AUMIDIBase::MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);
}
COMPONENT_CATCH
return result;
Binary file not shown.
33 changes: 33 additions & 0 deletions Core Audio Utility Classes (Version 1.02, 2012-10-31).patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff -uNr CoreAudioAudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp
--- CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp 2012-10-31 10:55:46.000000000 -0400
+++ CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp 2012-11-07 11:57:37.000000000 -0500
@@ -166,7 +166,7 @@
mBottomRight.h = mBottomRight.v = 0;

SizeControl(mCarbonPane, 0, 0);
- if (err = CreateUI(mXOffset, mYOffset))
+ if ((err = CreateUI(mXOffset, mYOffset)))
return err;

// we should only resize the control if a subclass has embedded
@@ -260,7 +260,7 @@
/* <-- kEventParamImageSize (out, typeHISize)
* On exit, contains the size of the entire scrollable view.
*/
- HISize originalSize = { mBottomRight.h, mBottomRight.v };
+ HISize originalSize = { static_cast<CGFloat>(mBottomRight.h), static_cast<CGFloat>(mBottomRight.v) };
verify_noerr(SetEventParameter(event, kEventParamImageSize, typeHISize, sizeof(HISize), &originalSize));

// [2/4]
diff -uNr CoreAudioAudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp
--- CoreAudioAudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp 2012-10-31 10:55:46.000000000 -0400
+++ CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp 2012-11-07 11:57:45.000000000 -0500
@@ -157,7 +157,7 @@
try {
AUMIDIEffectBase *This = static_cast<AUMIDIEffectBase *>(inComponentStorage);
if (This == NULL) return paramErr;
- result = This->MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);
+ result = This->AUMIDIBase::MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);
}
COMPONENT_CATCH
return result;
Binary file not shown.
21 changes: 21 additions & 0 deletions Core Audio Utility Classes (Version 1.03, 2013-01-02).patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff -r 06e86780caee AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp
--- a/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp Thu Jan 31 18:44:46 2013 -0500
+++ b/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp Thu Jan 31 18:50:59 2013 -0500
@@ -166,7 +166,7 @@
mBottomRight.h = mBottomRight.v = 0;

SizeControl(mCarbonPane, 0, 0);
- if (err = CreateUI(mXOffset, mYOffset))
+ if ((err = CreateUI(mXOffset, mYOffset)))
return err;

// we should only resize the control if a subclass has embedded
@@ -260,7 +260,7 @@
/* <-- kEventParamImageSize (out, typeHISize)
* On exit, contains the size of the entire scrollable view.
*/
- HISize originalSize = { mBottomRight.h, mBottomRight.v };
+ HISize originalSize = { static_cast<CGFloat>(mBottomRight.h), static_cast<CGFloat>(mBottomRight.v) };
verify_noerr(SetEventParameter(event, kEventParamImageSize, typeHISize, sizeof(HISize), &originalSize));

// [2/4]
Binary file not shown.
45 changes: 45 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Representitive License

The following license is in taken from the 1.03 version of the archive. It should be roughly similar for all versions herein, except, of course, the copyright date. It is ***your*** responsibility to read the fine-print, though, for the specific version you are using!

## Apple-Provided License ##

> Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
> Inc. ("Apple") in consideration of your agreement to the following
> terms, and your use, installation, modification or redistribution of
> this Apple software constitutes acceptance of these terms. If you do
> not agree with these terms, please do not use, install, modify or
> redistribute this Apple software.
>
> In consideration of your agreement to abide by the following terms, and
> subject to these terms, Apple grants you a personal, non-exclusive
> license, under Apple's copyrights in this original Apple software (the
> "Apple Software"), to use, reproduce, modify and redistribute the Apple
> Software, with or without modifications, in source and/or binary forms;
> provided that if you redistribute the Apple Software in its entirety and
> without modifications, you must retain this notice and the following
> text and disclaimers in all such redistributions of the Apple Software.
> Neither the name, trademarks, service marks or logos of Apple Inc. may
> be used to endorse or promote products derived from the Apple Software
> without specific prior written permission from Apple. Except as
> expressly stated in this notice, no other rights or licenses, express or
> implied, are granted by Apple herein, including but not limited to any
> patent rights that may be infringed by your derivative works or by other
> works in which the Apple Software may be incorporated.
>
> The Apple Software is provided by Apple on an "AS IS" basis. APPLE
> MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
> THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
> FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
> OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
>
> IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
> OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
> MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
> AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
> STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
> POSSIBILITY OF SUCH DAMAGE.
>
> Copyright (C) 2013 Apple Inc. All Rights Reserved.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Core Audio Utility Classes - Archive

This repository serves as an archive for Apple's *Core Audio Utility Classes*, as available from [Apple](https://developer.apple.com/library/mac/#samplecode/CoreAudioUtilityClasses/Introduction/Intro.html).

The reason for the archive is that Apple usually drops support for older OSes. For example, the 1.03 version of the files are not supported for OX 10.6 or earlier, whereas the previous versions are (or might be; I'm not actually sure).

The ZIP files are verbatim downloads from Apple's web site. The PATCH files are required for clean compilations; you may safely ignore "applied with fuzz" warnings from the `patch` utility. Also, don't forget to use the `-p0` option to `patch` or you'll wonder why `patch` can't find the files it's looking for...

0 comments on commit 18c87cf

Please sign in to comment.