-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathapp.h
75 lines (52 loc) · 1.85 KB
/
app.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
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
Copyright(C) 2011 MotionPortrait, Inc. All Rights Reserved.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it.
*/
#ifndef APP_H_INCLUDED
#define APP_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
// The simple framework expects the application code to define these functions.
extern void appInit();
extern void appDeinit();
extern void appRender(long tick, int width, int height);
//extern void appItem();
extern void appAction( const char *action );
//extern void appTouch( float x, float y );
extern void appTouch();
extern void appTouchMove();
extern void appTouchFinish();
extern void appScale(float scale); // seigo
extern void loadFaces(int x);
/* Value is non-zero when application is alive, and 0 when it is closing.
* Defined by the application framework.
*/
extern int gAppAlive;
extern int setFaceInfo( const char * );
extern int setHairInfo( const char * );
// seigo3
typedef struct _MyHeader {
int wChannels;
int dwSamplesPerSec;
int dwAvgBytesPerSec;
int wBlockAlign;
int wBitsPerSample;
int data_size;
} MyHeader;
extern void speakWav ( const char *buf );
extern int speakStart ();
#ifdef __cplusplus
}
#endif
#endif // !APP_H_INCLUDED
#define LOG_TAG "GuideNativeBridge"
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG , LOG_TAG, __VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO , LOG_TAG, __VA_ARGS__)
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN , LOG_TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR , LOG_TAG, __VA_ARGS__)