audio_note_play(gchar *file)
{
audio_set_filename(note_play.src, file);
-if (gst_element_set_state (note_play.pipeline, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
+if (gst_element_set_state(note_play.pipeline, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
g_printf("Failed to play file %s\n", file);
return FALSE;
}
audio_note_record(gchar *file)
{
audio_set_filename(note_record.sink, file);
-if (gst_element_set_state (note_record.pipeline, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
+if (gst_element_set_state(note_record.pipeline, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
g_printf("Failed to record to file %s\n", file);
return FALSE;
}
return TRUE;
}
+gboolean
+audio_note_stop()
+{
+return TRUE;
+}
+
/**
* Init gst pipelines for note play and record
*/
#define _AUDIO_NOTE_H
gboolean audio_note_init(void);
+void audio_note_deinit(void);
+
gboolean audio_note_record(gchar *file);
gboolean audio_note_play(gchar *file);