audio_ifcmd.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 62 行
H
62 行
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description:
*
* Author: Amlogic Software
* Created: 1/26/2006 7:58PM
*
*******************************************************************/
#ifndef AUDIO_IFCMD_H
#define AUDIO_IFCMD_H
/* audio control task message */
typedef struct {
int cmd;
unsigned param1;
int param2;
void *arg;
} _audio_msg_t;
typedef struct {
int format;
unsigned short bits_per_sample;
unsigned short channels;
unsigned sample_rate;
unsigned byte_per_frame;
unsigned bytes_per_second;
unsigned total_samples;
unsigned char has_stream_info;
unsigned total_byte_decoded; // for vbr or network streaming mode
unsigned total_sample_decoded; // for vbr or network streaming mode
} _audio_stream_info_t;
/* audio control task message */
#define AUDIO_CMD_NON_SEAMLESS_SETUP 0x00
#define AUDIO_CMD_START_PLAY 0x01
#define AUDIO_CMD_PAUSE_PLAY 0x02
#define AUDIO_CMD_RESUME_PLAY 0x03
#define AUDIO_CMD_DATA_CONTROL 0x04
#define AUDIO_CMD_STOP_PLAY 0x05
#define AUDIO_CMD_GET_INFO 0x06
#define AUDIO_CMD_SYNC_HOLD 0x07
#define AUDIO_CMD_SYNC_PLAY_AMASTER 0x08
#define AUDIO_CMD_SYNC_PLAY_VMASTER 0x09
#define AUDIO_NOTIFY_DRIVER_CFGCHANGED 0x10
#define AUDIO_CMDCTRL_FLUSH 0x20
#define AUDIO_CMD_SPECTRUM_START 0x21
#define AUDIO_CMD_SPECTRUM_STOP 0x22
#define AUDIO_PLAYSTAT_STOP 0
#define AUDIO_PLAYSTAT_SETUP 1
#define AUDIO_PLAYSTAT_PLAYING 2
#define AUDIO_PLAYSTAT_PAUSED 3
#define AUDIO_PLAYSTAT_DATA_CTRL 4
OS_EVENT *AudioLib_Init(void);
#endif /* AUDIO_IF_CMD_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?