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

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