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

📄 mmimt_lrc.h

📁 展讯平台的mtue源代码, 全面,精简,仅供学习, 商用后果自负
💻 H
字号:
/*****************************************************************************
** File Name:                                                                *
** Author:                                                                   *
** Date:           2007/06/08                                                *
** Copyright:      2007 MTONE, Inc. All Rights Reserved.                     *
** Description:                                                              *
******************************************************************************
**                         Important Edit History                            *
** --------------------------------------------------------------------------*
** DATE           NAME             DESCRIPTION                               *
** 2007/06/08                      Create                                    *
*****************************************************************************/

#ifndef _MMIMT_LRC_H_
#define _MMIMT_LRC_H_

#ifdef __cplusplus
    extern   "C"
    {
#endif

#include "sci_types.h"

//#include "mmidisplay_data.h"

#ifndef _WIN32
 #include "guifont.h"
#endif

#define MT_LRC_BUF_SIZE 6*1024
#define MT_LRC_IDX_MAX		128
#define MT_LRC_IDX_FMT_MAX	255

typedef struct
{
	char szAr[21];
	char szTi[21];
	char szAl[21];
	char szBy[21];
	int16 offset;
} MT_LRC_HEAD;

typedef struct
{
	uint32 tick;
	char *lrc_ptr;
} MT_LRC_IDX;

typedef struct
{
	uint32 tick;
	const char *lrc_ptr;
	uint8 lrc_len;
	uint16 x;
} MT_LRC_IDX_FMT;

void MTLRC_Load( uint32 filedev, const char *filename );
void MTLRC_Format( uint16 left, uint16 right, GUI_FONT_T font, uint8 space );
void MTLRC_Display( uint32 tick, uint16 top, uint16 bottom, uint8 focus_line_max,
				   GUI_FONT_T font, GUI_COLOR_T color, GUI_COLOR_T color_focus, uint8 space_char, uint8 space_line );
void MTLRC_Cleanup( void );

 uint32 MTLRC_GetNextTick( uint32 tick );
BOOLEAN MTLRC_IsEnded( uint32 tick );
BOOLEAN MTLRC_IsReady( void );

void MTLRC_Display_Line( uint32 lineno, uint16 top, uint16 bottom, uint8 focus_line_max,
				   GUI_FONT_T font, GUI_COLOR_T color, GUI_COLOR_T color_focus, uint8 space_char, uint8 space_line );

#ifdef __cplusplus
    }
#endif

#endif // _MMIMT_LRC_H_

⌨️ 快捷键说明

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