Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
wiced_bt_audio_codec.h File Reference

Defines the utilities used by the A2DP for configuring the audio codec. More...

Data Structures

struct  wiced_codec_param_sbc_t
 SBC Codec params. More...
 
struct  wiced_codec_param_mpx_t
 MP3/MP2/MP2_5 Codec params. More...
 
struct  wiced_codec_param_aac_t
 AAC Codec params. More...
 
struct  wiced_codec_param_pcm_t
 PCM Codec params. More...
 
union  wiced_codec_param_t
 Codec params. More...
 
struct  wiced_codec_interface_functions_t
 Codec Interface function matrix In external codec library below all function should be implemented. More...
 
struct  wiced_bt_a2dp_ext_codec_info_t
 External Codec information. More...
 
struct  wiced_audio_buffer_info_t
 Audio buffer information. More...
 

Macros

#define WICED_CODEC_STATUS_SUCCESS   0
 Indicates Success.
 
#define WICED_CODEC_STATUS_FAIL   1
 Indicates Failure.
 

Typedefs

typedef uint32_t( wiced_codec_get_mem_size_t )(void)
 CODEC returns required memory size in byte.
 
typedef uint32_t( wiced_codec_init_t )(void *memory, wiced_codec_param_t *param)
 
typedef uint32_t( wiced_codec_get_frame_len_t )(uint8_t *frame)
 
typedef uint32_t( wiced_codec_get_num_pcm_t )(void)
 
typedef uint32_t( wiced_codec_set_bit_rate_t )(uint32_t param)
 
typedef uint32_t( wiced_codec_get_bit_rate_t )(void)
 
typedef uint32_t( wiced_codec_process_frame_t )(void *pIn, void *pOut, uint32_t frame_length)
 
typedef uint32_t( wiced_codec_flush_t )(void)
 

Enumerations

enum  wiced_bt_a2dp_codec_type_t {
  WICED_AUDIO_CODEC_NONE = 0, WICED_AUDIO_CODEC_SBC_ENC = 1 << 0, WICED_AUDIO_CODEC_SBC_DEC = 1 << 1, WICED_AUDIO_CODEC_MP3_ENC = 1 << 2,
  WICED_AUDIO_CODEC_MP3_DEC = 1 << 3, WICED_AUDIO_CODEC_AAC_ENC = 1 << 4, WICED_AUDIO_CODEC_AAC_DEC = 1 << 5, WICED_AUDIO_CODEC_AAC_PLUS_ENC = 1 << 6,
  WICED_AUDIO_CODEC_AAC_PLUS_DEC = 1 << 7, WICED_AUDIO_CODEC_MP2_ENC = 1 << 8, WICED_AUDIO_CODEC_MP2_DEC = 1 << 9, WICED_AUDIO_CODEC_MP2_5_ENC = 1 << 10,
  WICED_AUDIO_CODEC_MP2_5_DEC = 1 << 11, WICED_AUDIO_CODEC_PCM_ENC = 1 << 12
}
 Codec Type. More...
 

Functions

void wiced_audio_register_codec_handler (wiced_bt_a2dp_codec_type_t audio_codec, wiced_codec_interface_functions_t *p_codec_functions)
 
void wiced_audio_request_buffer_info (wiced_audio_buffer_info_t *buffer_info)
 

Detailed Description

Defines the utilities used by the A2DP for configuring the audio codec.

Enumeration Type Documentation

Codec Type.

Enumerator
WICED_AUDIO_CODEC_NONE 

None.

WICED_AUDIO_CODEC_SBC_ENC 

SBC Encode.

WICED_AUDIO_CODEC_SBC_DEC 

SBC Decode.

WICED_AUDIO_CODEC_MP3_ENC 

MP3 Encode.

WICED_AUDIO_CODEC_MP3_DEC 

MP3 Decode.

WICED_AUDIO_CODEC_AAC_ENC 

AAC Encode.

WICED_AUDIO_CODEC_AAC_DEC 

AAC Decode.

WICED_AUDIO_CODEC_AAC_PLUS_ENC 

AAC Plus Encode.

WICED_AUDIO_CODEC_AAC_PLUS_DEC 

AAC Plus Decode.

WICED_AUDIO_CODEC_MP2_ENC 

MP2 Encode.

WICED_AUDIO_CODEC_MP2_DEC 

MP2 Decode.

WICED_AUDIO_CODEC_MP2_5_ENC 

MP2_5 Encode.

WICED_AUDIO_CODEC_MP2_5_DEC 

MP2_5 Decode.

WICED_AUDIO_CODEC_PCM_ENC 

PCM Encode.