Fix internal bug and change the design of ico-app-samplenavi
[profile/ivi/ico-uxf-homescreen-sample-apps.git] / ico-app-soundsample / src / soundsample.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the 
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9 /**
10  * @brief   Sound Sample APP
11  *          Test use with which sound is sounded
12  *
13  * @date    Mar-04-2013
14  */
15
16 #ifndef _SAMPLE_H_
17 #define _SAMPLE_H_
18
19 #ifdef __cplusplus
20 extern "C"
21 {
22 #endif
23
24     struct audio_config_t
25     {
26         char *wavfile_path;
27         char *server_ip;
28         char *device_name;
29         int volume1;
30         int volume2;
31         char *app_name;
32         char *stream_name;
33     };
34
35 /* STATE */
36 #define STATE_START  0
37 #define STATE_STOP   1
38 #define STATE_PAUSE  2
39
40 /* EVENT */
41 #define START_REQ    0
42 #define STOP_REQ     1
43 #define PAUSE_REQ    2
44
45 /* PULSE DEFAULT VAL */
46 #define APP_NAME    "TP_PulseAudio"
47 #define STREAM_NAME "Pri0"
48
49 #ifdef __cplusplus
50 };
51 #endif
52
53 #endif /* _SAMPLE_H_ */
54
55 /**
56  * End of File. (soundsample.h)
57  */