home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 August / IMM0895.ISO01.iso / share / os2 / track061 / os2defs.h < prev    next >
Text File  |  1992-12-08  |  2KB  |  77 lines

  1.  
  2. #define PLAYER_PAUSE     (char)22
  3. #define PLAYER_RECORD     (char)23
  4. #define PLAYER_PLAY    (char)24
  5. #define PLAYER_STOP    (char)25
  6. #define PLAYER_REWIND    (char)26
  7. #define PLAYER_FASTFORWARD     (char)27
  8.  
  9. typedef struct _REAL_SWCNTRL          /* swctl from C Set/2 */
  10. {
  11.    HWND     hwnd;
  12.    HWND     hwndIcon;
  13.    HPROGRAM hprog;
  14.    PID      idProcess;
  15.    ULONG    idSession;
  16.    ULONG    uchVisibility;
  17.    ULONG    fbJump;
  18.    CHAR     szSwtitle[MAXNAMEL+4];
  19.    ULONG    bProgType;
  20. } REAL_SWCNTRL;
  21.  
  22. typedef struct
  23. {
  24.    int  fPlaying, fTerminate;
  25.    char *fn;
  26.    struct song *song;
  27.    struct pref *pref;
  28.    HWND hwndControl;
  29.    HEV hevDone;
  30.    HEV hevPause;
  31.    HEV hevTimer;
  32. } THREADPARAMS;
  33.  
  34. typedef THREADPARAMS *PTHREADPARAMS;
  35.  
  36. /* real_freq = open_audio(USHORT):
  37.  * try to open audio with a sampling rate of ask_freq.
  38.  * We get the real frequency back. If we ask for 0, we
  39.  * get the ``preferred'' frequency.
  40.  */
  41. int open_audio(int frequency, USHORT DMAbuffersize);
  42.  
  43. void PrintSong(char *fn);
  44.  
  45. void PlaySong(ULONG arg);
  46.  
  47. extern HWND hwndControl; /* handle to control window */
  48. extern HWND hwndSong;
  49. extern HWND hwndTime;
  50. extern HWND hwndName;
  51. extern HWND hwndQueue;
  52. extern HWND hwndChan1, hwndChan2, hwndChan3, hwndChan4;
  53.  
  54. extern HSWITCH hSwitch;    /* handle to switch info */
  55. extern HAB hab;
  56.  
  57. extern HPS hpsSong;
  58. extern HPS hpsTime;
  59. extern HPS hpsName;
  60. extern HPS hpsQueue;
  61. extern HPS hpsChan1, hpsChan2, hpsChan3, hpsChan4;
  62.  
  63. extern RECTL rclTime, rclSong, rclName, rclQueue, 
  64.     rclChan1, rclChan2, rclChan3, rclChan4;
  65.  
  66. extern int fwidth;
  67. extern int fheight;
  68. extern int suspended;
  69. extern int abortsong;
  70. extern int blink;
  71. extern int pauseack;
  72. extern int numsongs, songnum;
  73. extern USHORT DMAbuffersize;
  74.  
  75. extern char title[];
  76.  
  77. extern char playermode[];