audio_codec_adpcm.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 52 行

H
52
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: Amlogic Software
 *  Created: Thu Nov 10 23:50:47 2005
 *
 *******************************************************************/
#ifndef _AUDIO_CODEC_ADPCM_H
#define _AUDIO_CODEC_ADPCM_H

#include "ioapi.h"

#include <amsysdef.h>


DECLARE_DEVICE_DRIVER_INIT(adpcmdec);
DECLARE_DEVICE_DRIVER_OPEN(adpcmdec);
DECLARE_DEVICE_DRIVER_CLOSE(adpcmdec);
DECLARE_DEVICE_DRIVER_READ(adpcmdec);
DECLARE_DEVICE_DRIVER_WRITE(adpcmdec);
DECLARE_DEVICE_DRIVER_IOCTL(adpcmdec);

#define DEVICE_TABLE_AUDIO_ADPCMDEC \
    {                                   \
        audio_device_adpcmdec_init,      \
        audio_device_adpcmdec_open,      \
        audio_device_adpcmdec_close,     \
        audio_device_adpcmdec_read,      \
        audio_device_adpcmdec_write,     \
        audio_device_adpcmdec_ioctl,     \
    }

#define AUDIO_CODEC_LPCM_FREQ_32        0x03
#define AUDIO_CODEC_LPCM_FREQ_44        0x02
#define AUDIO_CODEC_LPCM_FREQ_48        0x00
#define AUDIO_CODEC_LPCM_FREQ_96        0x01

typedef struct {
    unsigned    channel_num;
    unsigned    sample_bits;
    unsigned    src_freq;
    unsigned    pcm_scale;
    unsigned    block_align;
    unsigned    sample_block;
    unsigned    pcm_type;   // 0- msadpcm, 1- alaw, 2-ulaw
} _audio_codec_config_adpcmdec_t;

#endif /* _AUDIO_CODEC_ADPCM_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?