-
Notifications
You must be signed in to change notification settings - Fork 0
/
Core Audio Utility Classes (Version 1.02, 2012-10-31).patch
33 lines (30 loc) · 1.72 KB
/
Core Audio Utility Classes (Version 1.02, 2012-10-31).patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;