tone_app.h

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

H
52
字号
#ifndef __TONE_APP_H
#define __TONE_APP_H

#include "includes.h"
#include "aw_windows.h"

typedef enum {
    TONE_INIT, 
    TONE_PLAY,
    TONE_STOP, 
    TONE_QUIT,
} tone_status_e;

typedef struct {
    int targetfd_a;
    unsigned char audio_started;
    OS_EVENT *audio_msgq;
    
    int audio_dec_fd;
    int audio_stream_buffer_size;

     /* current status */
     tone_status_e stat;      
} tone_play_t;

typedef struct {
    unsigned char* buf;
    int len;
    int left;
} tone_buffer_t;

typedef struct{
    int type;  // 0 - default, 1- user setting
    void *src; // if default, src is a array, if user setting,  src is a file path
    int size;
}tone_para_t;

typedef struct {
    PAPPTASKARG         app;            /* application handle */
    tone_play_t          play;           /* playback control and running info */
    tone_buffer_t       abuffer;         
    AVSysEvent_t         internal_cmd_handle;
    EventSubscriber_t   *listener;      /* event loop listener */
    AVResource_t    file_resource;
    tone_para_t         *param;
} tone_t;

void ToneTaskProcess(void *opt);
void ToneAppGetInfo(void* pInfo);

#endif

⌨️ 快捷键说明

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