⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mp3only_app.h

📁 AMLOGIC DPF source code
💻 H
字号:
#ifndef __MP3ONLY_APP_H
#define __MP3ONLY_APP_H

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



#define MP3_NORMAL						0x1
#define MP3_RESUME_PLAY				0x2


typedef enum {
    MP3ONLY_INIT, 
    MP3ONLY_PLAY,
    MP3ONLY_STOP, 
    MP3ONLY_QUIT,
    MP3ONLY_PAUSE,
    MP3ONLY_SEAMLESS_FF,
    MP3ONLY_SEAMLESS_FB,
} mp3only_status_e;

typedef struct {
    int targetfd_a;
    unsigned char audio_started;
    OS_EVENT *audio_msgq;
    
    int audio_dec_fd;
    int audio_stream_buffer_size;
    int audio_type;	
	
    int audio_bitrate;	
    int audio_totaltime;
    int audio_totalsize;	
    /* FF FB */			
    int                         fskip_time;	
    int                         fplay_time;		
    int                         play_time;
    int                         fnext_cmd_time;
    /* current status */
    mp3only_status_e          stat;      
    int                         played_level;       /* 0 for end of files,  1 for still have data */              		 
} mp3only_play_t;

typedef struct {
    unsigned char* buf;
    int len;
    int left;
} mp3only_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;
    unsigned para;
}mp3only_para_t;

typedef struct {
    PAPPTASKARG         app;            /* application handle */
    mp3only_play_t          play;           /* playback control and running info */
    mp3only_buffer_t       abuffer;         
    AVSysEvent_t         internal_cmd_handle;
    EventSubscriber_t   *listener;      /* event loop listener */
    AVResource_t    file_resource;
    mp3only_para_t         *param;
} mp3only_t;

void Mp3onlyTaskProcess(void *opt);
void Mp3onlyAppGetInfo(void* pInfo);

#endif

⌨️ 快捷键说明

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