* @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;
* @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 */
* @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 */
* @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 */
* @{
*/
-//
-//AUDIO INPUT
-//
-
/**
* @brief Called when audio input data is available in asynchronous(event) mode.
*
* @}
*/
-//
-// AUDIO OUTPUT
-//
-
/**
* @addtogroup CAPI_MEDIA_AUDIO_OUT_MODULE
* @{
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);
}