16
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
|
|
3 |
*
|
|
4 |
* This library is free software; you can redistribute it and/or
|
|
5 |
* modify it under the terms of the GNU Lesser General Public
|
|
6 |
* License as published by the Free Software Foundation; either
|
|
7 |
* version 2 of the License, or (at your option) any later version.
|
|
8 |
*
|
|
9 |
* This library is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12 |
* Lesser General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU Lesser General Public
|
|
15 |
* License along with this library; if not, write to the
|
|
16 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
17 |
* Boston, MA 02111-1307, USA.
|
|
18 |
*
|
|
19 |
* Description:
|
|
20 |
*
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __HELP_FILE_H__
|
|
24 |
#define __HELP_FILE_H__
|
|
25 |
#include <glib.h>
|
|
26 |
#include <stdio.h>
|
|
27 |
|
|
28 |
enum
|
|
29 |
{
|
|
30 |
NONE,
|
|
31 |
PLAYING,
|
|
32 |
STOP,
|
|
33 |
PAUSE,
|
|
34 |
/*RESUME,
|
|
35 |
RECORDING*/
|
|
36 |
};
|
|
37 |
|
|
38 |
enum
|
|
39 |
{
|
|
40 |
RECORD_NONE,
|
|
41 |
RECORD_AMR,
|
|
42 |
RECORD_WAV,
|
|
43 |
RECORD_RAW,
|
|
44 |
RECORD_G711,
|
|
45 |
RECORD_G729,
|
|
46 |
RECORD_ILBC,
|
|
47 |
RECORD_AAC
|
|
48 |
};
|
|
49 |
|
|
50 |
|
|
51 |
#ifdef __cplusplus
|
|
52 |
extern "C"
|
|
53 |
{
|
|
54 |
#endif
|
|
55 |
|
|
56 |
int gst_play_file( const char* file );
|
|
57 |
|
|
58 |
int gst_record_file( int type );
|
|
59 |
|
|
60 |
int gst_record_wav();
|
|
61 |
|
|
62 |
int gst_pause();
|
|
63 |
|
|
64 |
int gst_resume();
|
|
65 |
|
|
66 |
int gst_record_stop();
|
|
67 |
|
|
68 |
int gst_seek();
|
|
69 |
|
|
70 |
int gst_unref();
|
|
71 |
|
|
72 |
int gst_get_events();
|
|
73 |
|
|
74 |
int gst_record_aac();
|
|
75 |
|
|
76 |
int gst_record_amr();
|
|
77 |
|
|
78 |
#ifdef __cplusplus
|
|
79 |
}
|
|
80 |
#endif
|
|
81 |
#endif //__HELP_FILE_H__
|
|
82 |
|