# for package file
SET(dependents "dlog mm-camcorder legacy-camera")
-SET(dependents2 "capi-media-audio-io")
SET(fw_name "${service}-${submodule}")
-SET(fw_name2 "only_cflags")
PROJECT(${fw_name})
FOREACH(flag ${${fw_name}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-pkg_check_modules(${fw_name2} REQUIRED ${dependents2})
-FOREACH(flag2 ${${fw_name2}_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag2}")
-ENDFOREACH(flag2)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Wextra -Wno-array-bounds -Wno-empty-body -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow -Wwrite-strings -Wswitch-default -Wno-unused-but-set-parameter -Wno-unused-but-set-variable")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
#define __TIZEN_MULTIMEDIA_RECORDER_H__
#include <tizen.h>
#include <legacy_camera.h>
-#include <audio_io.h>
#ifdef __cplusplus
extern "C" {
RECORDER_DEVICE_STATE_PAUSED /**< All recordings are paused */
} recorder_device_state_e;
+
+/**
+ * @brief Enumeration for recorder sample type with bit depth.
+ * @since_tizen 4.0
+ */
+typedef enum {
+ RECORDER_SAMPLE_TYPE_U8 = 0x70, /**< Unsigned 8-bit audio samples */
+ RECORDER_SAMPLE_TYPE_S16_LE /**< Signed 16-bit audio samples */
+} recorder_sample_type_e;
+
+
/**
* @}
*/
* @param[in] user_data The user data passed from the callback registration function
* @see legacy_recorder_set_audio_stream_cb()
*/
-typedef void (*recorder_audio_stream_cb)(void *stream, int size, audio_sample_type_e format, int channel, unsigned int timestamp, void *user_data);
+typedef void (*recorder_audio_stream_cb)(void *stream, int size, recorder_sample_type_e format, int channel, unsigned int timestamp, void *user_data);
/**
* @brief Called when muxed stream data was being delivered just before storing in the recorded file.
static int __mm_audio_stream_cb(MMCamcorderAudioStreamDataType *stream, void *user_param)
{
recorder_s *handle = NULL;
- audio_sample_type_e format = AUDIO_SAMPLE_TYPE_U8;
+ recorder_sample_type_e format = RECORDER_SAMPLE_TYPE_U8;
int type = _RECORDER_EVENT_TYPE_AUDIO_STREAM;
if (!user_param || !stream) {
handle = (recorder_s *)user_param;
if (stream->format == MM_CAMCORDER_AUDIO_FORMAT_PCM_S16_LE)
- format = AUDIO_SAMPLE_TYPE_S16_LE;
+ format = RECORDER_SAMPLE_TYPE_S16_LE;
if (handle->user_cb[type]) {
((recorder_audio_stream_cb)(handle->user_cb[type]))(stream->data, stream->length, format,
return;
}
-void _recorder_disp_audio_stream_cb(void* stream, int size, audio_sample_type_e format, int channel, unsigned int timestamp, void *user_data)
+void _recorder_disp_audio_stream_cb(void* stream, int size, recorder_sample_type_e format, int channel, unsigned int timestamp, void *user_data)
{
muse_module_h module = (muse_module_h)user_data;
muse_recorder_handle_s *muse_recorder = NULL;
Name: mmsvc-recorder
Summary: A Recorder module for muse server
-Version: 0.3.2
+Version: 0.3.3
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(mused)
-BuildRequires: pkgconfig(capi-media-audio-io)
%description