replicate the remove-all-trailing whitespace commit(s) in master
[ardour.git] / libs / appleutility / CoreAudio / AudioUnits / AUPublic / OtherBases / AUMIDIEffectBase.h
1 /*
2      File: AUMIDIEffectBase.h
3  Abstract: Part of CoreAudio Utility Classes
4   Version: 1.1
5
6  Disclaimer: IMPORTANT:  This Apple software is supplied to you by Apple
7  Inc. ("Apple") in consideration of your agreement to the following
8  terms, and your use, installation, modification or redistribution of
9  this Apple software constitutes acceptance of these terms.  If you do
10  not agree with these terms, please do not use, install, modify or
11  redistribute this Apple software.
12
13  In consideration of your agreement to abide by the following terms, and
14  subject to these terms, Apple grants you a personal, non-exclusive
15  license, under Apple's copyrights in this original Apple software (the
16  "Apple Software"), to use, reproduce, modify and redistribute the Apple
17  Software, with or without modifications, in source and/or binary forms;
18  provided that if you redistribute the Apple Software in its entirety and
19  without modifications, you must retain this notice and the following
20  text and disclaimers in all such redistributions of the Apple Software.
21  Neither the name, trademarks, service marks or logos of Apple Inc. may
22  be used to endorse or promote products derived from the Apple Software
23  without specific prior written permission from Apple.  Except as
24  expressly stated in this notice, no other rights or licenses, express or
25  implied, are granted by Apple herein, including but not limited to any
26  patent rights that may be infringed by your derivative works or by other
27  works in which the Apple Software may be incorporated.
28
29  The Apple Software is provided by Apple on an "AS IS" basis.  APPLE
30  MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
31  THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
32  FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
33  OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
34
35  IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
36  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
37  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
38  INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
39  MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
40  AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
41  STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
42  POSSIBILITY OF SUCH DAMAGE.
43
44  Copyright (C) 2014 Apple Inc. All Rights Reserved.
45
46 */
47 #ifndef __AUMIDIEffectBase_h__
48 #define __AUMIDIEffectBase_h__
49
50 #include "AUMIDIBase.h"
51 #include "AUEffectBase.h"
52
53 // ________________________________________________________________________
54 //      AUMIDIEffectBase
55 //
56         /*! @class AUMIDIEffectBase */
57 class AUMIDIEffectBase : public AUEffectBase, public AUMIDIBase {
58 public:
59         /*! @ctor AUMIDIEffectBase */
60                                                                 AUMIDIEffectBase(       AudioComponentInstance  inInstance,
61                                                                                                         bool                                    inProcessesInPlace = false );
62     /*! @method MIDIEvent */
63     virtual OSStatus            MIDIEvent(UInt32            inStatus,
64                                           UInt32            inData1,
65                                           UInt32            inData2,
66                                           UInt32            inOffsetSampleFrame)
67         {
68                 return AUMIDIBase::MIDIEvent (inStatus, inData1, inData2, inOffsetSampleFrame);
69         }
70
71         /*! @method SysEx */
72         virtual OSStatus            SysEx(const UInt8 *         inData,
73                                       UInt32                inLength)
74         {
75                 return AUMIDIBase::SysEx (inData, inLength);
76         }
77
78         /*! @method GetPropertyInfo */
79         virtual OSStatus                        GetPropertyInfo(AudioUnitPropertyID                     inID,
80                                                                                                 AudioUnitScope                          inScope,
81                                                                                                 AudioUnitElement                        inElement,
82                                                                                                 UInt32 &                                        outDataSize,
83                                                                                                 Boolean &                                       outWritable);
84
85         /*! @method GetProperty */
86         virtual OSStatus                        GetProperty(    AudioUnitPropertyID             inID,
87                                                                                                 AudioUnitScope                          inScope,
88                                                                                                 AudioUnitElement                        inElement,
89                                                                                                 void *                                          outData);
90         /*! @method SetProperty */
91         virtual OSStatus                        SetProperty(    AudioUnitPropertyID             inID,
92                                                                                                 AudioUnitScope                          inScope,
93                                                                                                 AudioUnitElement                        inElement,
94                                                                                                 const void *                            inData,
95                                                                                                 UInt32                                          inDataSize);
96 #if !TARGET_OS_IPHONE
97         // component dispatcher
98         /*! @method ComponentEntryDispatch */
99         static OSStatus                 ComponentEntryDispatch( ComponentParameters *                   params,
100                                                                                                                 AUMIDIEffectBase *                              This);
101 #endif
102 };
103
104 #endif // __AUMIDIEffectBase_h__