-
Notifications
You must be signed in to change notification settings - Fork 8
/
MyTestedPlugin.h
38 lines (30 loc) · 966 Bytes
/
MyTestedPlugin.h
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
34
35
36
37
38
//
// MyTestedPlugin.h
// MyTestedPlugin
//
// Created by Fred G on 24/11/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#ifndef MyTestedPlugin_MyTestedPlugin_h
#define MyTestedPlugin_MyTestedPlugin_h
class MyTestedPluginKernel : public AUKernelBase
{
public:
MyTestedPluginKernel(AUEffectBase * inAudioUnit);
// processes one channel of non-interleaved samples
virtual void Process(Float32 const* inSourceP,
Float32 * inDestP,
UInt32 inFramesToProcess,
UInt32 inNumChannels,
bool & ioSilence);
};
class MyTestedPlugin : public AUEffectBase
{
public:
MyTestedPlugin(AudioUnit component);
virtual OSStatus Version() { return 0xFFFFFFFF; }
virtual OSStatus Initialize();
virtual AUKernelBase * NewKernel() { return new MyTestedPluginKernel(this); }
};
AUDIOCOMPONENT_ENTRY(AUBaseFactory, MyTestedPlugin)
#endif