audio-io applied coding rule (JIRA : TSAM-430, TSAM-434) 79/49479/2 accepted/tizen/mobile/20151014.093323 accepted/tizen/tv/20151014.093343 accepted/tizen/wearable/20151014.093351 submit/tizen/20151014.065602 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Wed, 14 Oct 2015 00:38:06 +0000 (09:38 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Wed, 14 Oct 2015 00:44:05 +0000 (09:44 +0900)
[Version] 0.3.18
[Profile] Common
[Issue Type] API
[Dependency module] NA
[Dependency commit] NA
[Comment]

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I7c144638fc1300254d0201008bfede5df42c37a7

include/audio_io.h
src/audio_io.c

index 5d586f4..57b2e67 100644 (file)
@@ -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
  * @{
index 57eea3f..d399328 100644 (file)
@@ -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);
 }