Tizen Native API
|
Typedefs | |
typedef void(* | audio_io_interrupted_cb )(audio_io_interrupted_code_e code, void *user_data) |
Called when audio input or output is interrupted. |
The Audio I/O API provides functions for controlling audio devices.
Required Header
#include <audio_io.h>
Overview
The Audio I/O API provides a set of functions to directly manage the system audio devices. It gives easy access to the hardware layer of the sound card with a professional multichannel audio interface. It should be used for activities requiring raw audio data buffers(PCM format).
Programming the interface requires first obtaining a handle to the device, via the audio_in_create() or audio_out_create() function.
The input and output devices both have an available set of queries, to find the suggested buffer size, sampling rate, channel type, and sample type. For output, there is an additional query, to get the sound type (these types are defined in the Sound Manager API).
Reading from input device is done by audio_in_read() with allocated buffer after audio_in_prepare(). Similarly, writing to output device is done by audio_out_write() with allocated buffer after audio_out_prepare().
Typedef Documentation
typedef void(* audio_io_interrupted_cb)(audio_io_interrupted_code_e code, void *user_data) |
Called when audio input or output is interrupted.
- Since :
- 2.3
- Parameters:
-
[in] error_code The interrupted error code [in] user_data The user data passed from the callback registration function
Enumeration Type Documentation
enum audio_channel_e |
enum audio_io_error_e |
Enumeration for audio input and output error.
- Since :
- 2.3
- Enumerator:
Enumeration for audio IO interrupted messages.
- Since :
- 2.3
- Enumerator:
enum audio_sample_type_e |