forked from osoumen/C700
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEfxAccess.h
61 lines (52 loc) · 1.38 KB
/
EfxAccess.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* EfxAccess.h
* C700
*
* Created by osoumen on 12/10/08.
* Copyright 2012 __MyCompanyName__. All rights reserved.
* GUI内からエフェクタへアクセスするためのクラス
*/
#pragma once
#include "C700defines.h"
#if AU
#include <AudioUnit/AUComponent.h>
#include <AudioToolbox/AudioToolbox.h>
#else
#include "audioeffectx.h"
class C700VST;
#endif
#include "SPCFile.h"
#include "PlistBRRFile.h"
#include "RawBRRFile.h"
#include "AudioFile.h"
#include "XIFile.h"
class EfxAccess
{
public:
EfxAccess( void *efx );
~EfxAccess();
#if AU
void SetEventListener( AUEventListenerRef listener ) { mEventListener = listener; }
#endif
bool CreateBRRFileData( RawBRRFile **outData );
bool CreateXIFileData( XIFile **outData );
bool CreatePlistBRRFileData( PlistBRRFile **outData );
bool SetPlistBRRFileData( const PlistBRRFile *data );
bool SetSourceFilePath( const char *path );
bool GetSourceFilePath( char *path, int maxLen );
bool SetProgramName( const char *pgname );
bool GetProgramName( char *pgname, int maxLen );
bool GetBRRData( BRRData *data );
bool SetBRRData( const BRRData *data );
float GetPropertyValue( int propertyId );
void SetPropertyValue( int propertyID, float value );
float GetParameter( int parameterId );
void SetParameter( void *sender, int index, float value );
private:
#if AU
AudioUnit mAU;
AUEventListenerRef mEventListener;
#else
C700VST* mEfx;
#endif
};