~osmoma/audio-recorder/trunk

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
#ifndef _GST_RECORDER_H
#define _GST_RECORDER_H

#include <glib.h>
#include <gdk/gdk.h>
#include <glib/gstdio.h>
#include <gst/gst.h>

void rec_start_stop_recording();

void rec_module_init();
void rec_module_exit();

void rec_set_data_lock();
void rec_free_data_lock();

void rec_get_state(gint *state, gint *pending);

gboolean rec_is_recording();
gboolean rec_is_paused();

const gchar *rec_get_state_name(gint state);

gboolean rec_start_recording();
void rec_stop_recording(gboolean delete_file);
void rec_pause_recording();
void rec_continue_recording();

void rec_start_stop_recording();
void rec_stop_and_reset();

gint64 rec_get_stream_time();

gchar *rec_get_output_filename();

void rec_test_func();

#endif