/*
-* Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
#ifndef __STTD_RECORDER_H__
#define __STTD_RECORDER_H__
-#include "sttp.h"
+#include "stte.h"
#ifdef __cplusplus
extern "C" {
#endif
-typedef enum {
- STTD_RECORDER_STATE_READY, /**< Recorder is ready to start */
- STTD_RECORDER_STATE_RECORDING /**< In the middle of recording */
-} sttd_recorder_state;
-
typedef int (*stt_recorder_audio_cb)(const void* data, const unsigned int length);
-int sttd_recorder_create(stt_recorder_audio_cb callback, sttp_audio_type_e type, int channel, unsigned int sample_rate);
+typedef void (*stt_recorder_interrupt_cb)();
+
+int sttd_recorder_initialize(stt_recorder_audio_cb audio_cb, stt_recorder_interrupt_cb interrupt_cb);
+
+int sttd_recorder_deinitialize();
+
+int sttd_recorder_set_audio_session();
+
+int sttd_recorder_unset_audio_session();
+
+int sttd_recorder_create(stte_audio_type_e type, int channel, unsigned int sample_rate);
int sttd_recorder_destroy();
-int sttd_recorder_start();
+int sttd_recorder_start(int uid);
int sttd_recorder_stop();