#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	infDialogId ;
extern int	infMsgId[7] ;
extern int	infNumId[5] ;
extern int	infOkBtnId ;
extern int	infOkFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataIWVINF = { "MmiInit",  14, 0 } ;

/* infDialogId */

static MMIPACKET d001 = {	&infDialogId,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_SAVEL40,
							 213, 113, 427, 368, 8,15, 8,
							MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* infMsgId[0] */

static MMIPACKET d002 = {	&infMsgId[0],
							&infDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 240, 132, 399, 149, 8,15, 8,
							MS_NONEL40,
							"ＷＡＶＥデータ情報",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* infMsgId[1] */

static MMIPACKET d003 = {	&infMsgId[1],
							&infDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 235, 172, 343, 189, 8,15, 8,
							MS_NONEL40,
							"サンプリングレート",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* infMsgId[2] */

static MMIPACKET d004 = {	&infMsgId[2],
							&infDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 235, 196, 329, 213, 8,15, 8,
							MS_NONEL40,
							"量子化数",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* infMsgId[3] */

static MMIPACKET d005 = {	&infMsgId[3],
							&infDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 235, 220, 329, 237, 8,15, 8,
							MS_NONEL40,
							"チャンネル数",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* infMsgId[4] */

static MMIPACKET d006 = {	&infMsgId[4],
							&infDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d006d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 235, 244, 348, 261, 8,15, 8,
							MS_NONEL40,
							"データ長",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* infMsgId[5] */

static MMIPACKET d007 = {	&infMsgId[5],
							&infDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 235, 268, 317, 285, 8,15, 8,
							MS_NONEL40,
							"時間（秒）",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* infNumId[0] */

static MMIPACKET d008 = {	&infNumId[0],
							&infDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d008d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
							 342, 172, 405, 189, 8,15, 8,
							MS_NONEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,   0,9999,   1,   0,
							 263, 264
						} ;

/* infNumId[1] */

static MMIPACKET d009 = {	&infNumId[1],
							&infDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d009d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
							 342, 196, 405, 213, 8,15, 8,
							MS_NONEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,   0,9999,   1,   0,
							 263, 264
						} ;

/* infNumId[2] */

static MMIPACKET d010 = {	&infNumId[2],
							&infDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d010d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
							 342, 220, 405, 237, 8,15, 8,
							MS_NONEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,   0,9999,   1,   0,
							 263, 264
						} ;

/* infNumId[3] */

static MMIPACKET d011 = {	&infNumId[3],
							&infDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d011d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
							 342, 244, 405, 261, 8,15, 8,
							MS_NONEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,   0,9999,   1,   0,
							 263, 264
						} ;

/* infNumId[4] */

static MMIPACKET d012 = {	&infNumId[4],
							&infDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d012d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
							 342, 268, 405, 285, 8,15, 8,
							MS_NONEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,   0,9999,   1,   1,
							 263, 264
						} ;

/* infOkBtnId */

static MMIPACKET d013 = {	&infOkBtnId,
							&infDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d013d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 350, 332, 406, 351, 8,15, 8,
							MS_ROUNDL40 | MS_FRAMEL40 | MS_DEFAULTL40,
							infOkFunc,
							0x0000
						} ;

/* infMsgId[6] */

static MMIPACKET d014 = {	&infMsgId[6],
							&infDialogId,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d014d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 359, 333, 399, 350, 8,15, 8,
							MS_NONEL40,
							"確  認",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

