From f0a782f34f81fbdedbcabb2a4df209b3e510ab6e Mon Sep 17 00:00:00 2001 From: KimJeongYeon Date: Wed, 14 Oct 2015 09:38:06 +0900 Subject: [PATCH] audio-io applied coding rule (JIRA : TSAM-430, TSAM-434) [Version] 0.3.18 [Profile] Common [Issue Type] API [Dependency module] NA [Dependency commit] NA [Comment] Signed-off-by: KimJeongYeon Change-Id: I7c144638fc1300254d0201008bfede5df42c37a7 --- include/audio_io.h | 19 ++++--------------- src/audio_io.c | 2 +- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/include/audio_io.h b/include/audio_io.h index 5d586f4..57b2e67 100644 --- a/include/audio_io.h +++ b/include/audio_io.h @@ -70,8 +70,7 @@ typedef struct audio_io_s *audio_out_h; * @brief Enumeration for audio sample type with bit depth. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { AUDIO_SAMPLE_TYPE_U8 = 0x70, /**< Unsigned 8-bit audio samples */ AUDIO_SAMPLE_TYPE_S16_LE, /**< Signed 16-bit audio samples */ } audio_sample_type_e; @@ -89,8 +88,7 @@ typedef enum { * @brief Enumeration for audio input and output state. * @since_tizen 3.0 */ -typedef enum -{ +typedef enum { AUDIO_IO_STATE_IDLE, /**< Audio-io handle is created, but not prepared */ AUDIO_IO_STATE_RUNNING, /**< Audio-io handle is ready and the stream is running */ AUDIO_IO_STATE_PAUSED, /**< Audio-io handle is ready and the stream is paused */ @@ -100,7 +98,7 @@ typedef enum * @brief Enumeration for audio input and output error. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum{ +typedef enum { AUDIO_IO_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ AUDIO_IO_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ AUDIO_IO_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ @@ -120,8 +118,7 @@ typedef enum{ * @brief Enumeration for audio IO interrupted messages. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { AUDIO_IO_INTERRUPTED_COMPLETED = 0, /**< Interrupt completed */ AUDIO_IO_INTERRUPTED_BY_MEDIA, /**< Interrupted by a media application */ AUDIO_IO_INTERRUPTED_BY_CALL, /**< Interrupted by an incoming call */ @@ -156,10 +153,6 @@ typedef void (*audio_io_interrupted_cb)(audio_io_interrupted_code_e code, void * * @{ */ -// -//AUDIO INPUT -// - /** * @brief Called when audio input data is available in asynchronous(event) mode. * @@ -659,10 +652,6 @@ int audio_in_unset_state_changed_cb(audio_in_h input); * @} */ -// -// AUDIO OUTPUT -// - /** * @addtogroup CAPI_MEDIA_AUDIO_OUT_MODULE * @{ diff --git a/src/audio_io.c b/src/audio_io.c index 57eea3f..d399328 100644 --- a/src/audio_io.c +++ b/src/audio_io.c @@ -64,7 +64,7 @@ int audio_in_flush(audio_in_h input) return cpp_audio_in_flush(input); } -int audio_in_read(audio_in_h input, void *buffer, unsigned int length ) +int audio_in_read(audio_in_h input, void *buffer, unsigned int length) { return cpp_audio_in_read(input, buffer, length); } -- 2.7.4