home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FreeWare Collection 3
/
FreeSoftwareCollection3pd199x-jp.img
/
pao
/
ms_dos
/
cdplay
/
src
/
cdtape.h
< prev
next >
Wrap
Text File
|
1980-01-02
|
2KB
|
79 lines
/** << MSC V5.1 >> ************************************************************
**
** CDダビング助さん用ヘッダ
**
** Programed by Y.Hirata ( Nifty ID : NAB03321 )
**
******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dos.h>
#include <process.h>
typedef struct _TOC { /* CD-ROM 曲情報取得用 */
char min ;
char sec ;
char frame ;
} TOC ;
#define TRUE 1
#define FALSE 0
extern int23_init() ;
extern int23_release() ;
extern ITcount ;
extern int ITIMER_init() ;
extern int ITIMER_release() ;
#define CDC_wait 20 /* CDC wait count : 200ms */
#define KEY_wait 20000 /* KEY wait count : 200ms */
#define KEY_repeat 2000 /* KEY repeat : 20ms */
#define RETRY 10 /* エラー発生時のリトライ回数 */
#define NLdisp 15 /* 1曲の表示文字数 */
#define SLdisp 3 /* 1曲の表示位置調整 */
#define CUR_X0 4 /* カーソルを表示する開始位置(桁) */
#define CUR_Y0 4 /* (行) */
#define XCNT 15 /* 1曲の情報を表示する横サイズ */
#define CUR_X1 CUR_X0 /* カーソルが移動できる範囲(桁) */
#define CUR_X2 64 /* カーソルが移動できる範囲(桁) */
#define CUR_Y1 CUR_Y0 /* (行) */
#define CUR_Y2 23 /* (行) */
#define CD_CONT 0
#define CD_SING 1
#define CD_PROG 2
#if 0
char CDmode = 0 ; /* CD 演奏モード : 0 - 連続 */
/* 1 - シングル */
/* 2 - プログラム */
#endif
#define REPCNT 255 /* リピート回数 */
#if 0
int CDrept = FALSE ; /* CD-リピートフラグ */
int CDstop = TRUE ; /* CD-STOPフラグ */
#endif
#define NOW_STOP 0 /* 停止中 or NOT READY */
#define NOW_PLAY 1 /* 演奏中 */
#define NOW_PAUSE 2 /* 一時停止中 */
#define FFREVSEC 1 /* 先送り/後戻り時のカウント値[秒] */
#define NTape 8 /* テープの種類 */
char Tape[NTape] = { /* テープ時間[分] */
30, 42, 46, 54, 60, 74, 80, 90
} ;
char Tape2[NTape] = { /* オーバー許容時間[秒](片面) */
20, 25, 30, 35, 40, 45, 50, 55
} ;