From 465875efc886a5924ed09359b34aa2dc665e7719 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 25 Oct 2007 13:09:49 +0300 Subject: [PATCH] Misc --- src/audio-note.c | 10 ++++++++-- src/audio-note.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/audio-note.c b/src/audio-note.c index 1ff76aa..3f02450 100644 --- a/src/audio-note.c +++ b/src/audio-note.c @@ -112,7 +112,7 @@ gboolean 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; } @@ -126,13 +126,19 @@ gboolean 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 */ diff --git a/src/audio-note.h b/src/audio-note.h index 911f4c6..1d0fda9 100644 --- a/src/audio-note.h +++ b/src/audio-note.h @@ -22,6 +22,8 @@ #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); -- 2.39.5