[AUDIO] add close mp3 file playing
Change-Id: I2345b112e9143f0685dad6997706757cc26cbdbf
diff --git a/mbtk/mbtk_lib/src/mbtk_audio_alsa.c b/mbtk/mbtk_lib/src/mbtk_audio_alsa.c
index d654c6a..6d85edc 100755
--- a/mbtk/mbtk_lib/src/mbtk_audio_alsa.c
+++ b/mbtk/mbtk_lib/src/mbtk_audio_alsa.c
@@ -220,6 +220,16 @@
pthread_mutex_unlock(&pcxt->_cond_mutex);
}
+
+int mbtk_audio_get_status(void* hdl)
+{
+ struct mopen_audio_t *pcxt = (struct mopen_audio_t *)hdl;
+ if (NULL == hdl || NULL == internal_hdl)
+ return 0;
+
+ return pcxt->state;
+}
+
static void* mbtk_record_pthread(void* hdl)
{
struct mopen_audio_t *pcxt = (struct mopen_audio_t *)hdl;