home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 3 / FreeSoftwareCollection3pd199x-jp.img / pao / ms_dos / cdplay / src / cdtape.h < prev    next >
Text File  |  1980-01-02  |  2KB  |  79 lines

  1. /** << MSC V5.1 >> ************************************************************
  2. **
  3. **    CDダビング助さん用ヘッダ
  4. **
  5. **    Programed by Y.Hirata ( Nifty ID : NAB03321 )
  6. **
  7. ******************************************************************************/
  8.  
  9. #include    <stdio.h>
  10. #include    <stdlib.h>
  11. #include    <string.h>
  12. #include    <dos.h>
  13. #include    <process.h>
  14.  
  15. typedef struct _TOC {            /*  CD-ROM 曲情報取得用                */
  16.         char    min ;
  17.         char    sec ;
  18.         char    frame ;
  19. } TOC ;
  20.  
  21. #define        TRUE        1
  22. #define        FALSE        0
  23.  
  24. extern        int23_init() ;
  25. extern        int23_release() ;
  26.  
  27. extern        ITcount ;
  28. extern        int ITIMER_init() ;
  29. extern        int ITIMER_release() ;
  30.  
  31. #define        CDC_wait    20        /*  CDC wait count : 200ms            */
  32. #define        KEY_wait    20000    /*  KEY wait count : 200ms            */
  33. #define        KEY_repeat    2000    /*  KEY repeat     : 20ms            */
  34.  
  35. #define        RETRY        10        /*  エラー発生時のリトライ回数        */
  36.  
  37. #define        NLdisp            15            /*  1曲の表示文字数                */
  38. #define        SLdisp            3            /*  1曲の表示位置調整            */
  39.  
  40. #define        CUR_X0            4            /*  カーソルを表示する開始位置(桁)    */
  41. #define        CUR_Y0            4            /*                          (行)    */
  42. #define        XCNT            15            /*  1曲の情報を表示する横サイズ    */
  43. #define        CUR_X1            CUR_X0        /*  カーソルが移動できる範囲(桁)    */
  44. #define        CUR_X2            64            /*  カーソルが移動できる範囲(桁)    */
  45. #define        CUR_Y1            CUR_Y0        /*                        (行)    */
  46. #define        CUR_Y2            23            /*                        (行)    */
  47.  
  48. #define        CD_CONT            0
  49. #define        CD_SING            1
  50. #define        CD_PROG            2
  51. #if 0
  52. char        CDmode = 0 ;    /*  CD 演奏モード : 0 - 連続                */
  53.                             /*                    1 - シングル            */
  54.                             /*                    2 - プログラム            */
  55. #endif
  56.  
  57. #define        REPCNT            255                        /*  リピート回数        */
  58. #if 0
  59. int            CDrept = FALSE ;                        /*  CD-リピートフラグ    */
  60. int            CDstop = TRUE ;                            /*  CD-STOPフラグ        */
  61. #endif
  62.  
  63. #define        NOW_STOP        0                    /*  停止中 or NOT READY    */
  64. #define        NOW_PLAY        1                    /*  演奏中                */
  65. #define        NOW_PAUSE        2                    /*  一時停止中            */
  66.  
  67. #define        FFREVSEC        1            /*  先送り/後戻り時のカウント値[秒]    */
  68.  
  69. #define        NTape            8                    /*  テープの種類        */
  70.  
  71. char    Tape[NTape]  = {                        /*  テープ時間[分]        */
  72.                         30, 42, 46, 54, 60, 74, 80, 90
  73.                        } ;
  74.  
  75. char    Tape2[NTape] = {                    /*  オーバー許容時間[秒](片面)    */
  76.                         20, 25, 30, 35, 40, 45, 50, 55
  77.                        } ;
  78.  
  79.