home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / soundb / sndhack / app.h < prev    next >
C/C++ Source or Header  |  1991-07-30  |  3KB  |  102 lines

  1. /* Dialog Box ID's */
  2. #include "menu.h"
  3. #include "dialog.h"
  4.  
  5. /*********************************************************************/
  6. /* Global Function Prototypes                                        */
  7. /*********************************************************************/
  8.  
  9. /* main.c */
  10. int NEAR PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  11. long FAR PASCAL WinProc(HWND, unsigned, WORD, LONG);
  12. void            WinMenuCommand(HWND, int);
  13. int             GoDialogBox(HANDLE, LPSTR, HWND, FARPROC);
  14. BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);
  15.  
  16. /* init.c */
  17. BOOL            InitApplication(HANDLE);
  18. BOOL            InitInstance(HANDLE, int);
  19.  
  20. /* edit.c */
  21. long            EditProc(HWND, unsigned, WORD, LONG);
  22. void            EditMenuCommand(HWND, int);
  23. void            EditPutString(char *);
  24.  
  25. /* fpaste.c */
  26. void            PasteMenuCommand(HWND, int);
  27. BOOL FAR PASCAL DlgCountVoiceNotes(HWND, unsigned, WORD, LONG);
  28. BOOL FAR PASCAL DlgSetSoundNoise(HWND, unsigned, WORD, LONG);
  29. BOOL FAR PASCAL DlgSetVoiceAccent(HWND, unsigned, WORD, LONG);
  30. BOOL FAR PASCAL DlgSetVoiceEnvelope(HWND, unsigned, WORD, LONG);
  31. BOOL FAR PASCAL DlgSetVoiceNote(HWND, unsigned, WORD, LONG);
  32. BOOL FAR PASCAL DlgSetVoiceSound(HWND, unsigned, WORD, LONG);
  33. BOOL FAR PASCAL DlgSetVoiceQueueSize(HWND, unsigned, WORD, LONG);
  34. BOOL FAR PASCAL DlgSetVoiceThreshold(HWND, unsigned, WORD, LONG);
  35. BOOL FAR PASCAL DlgWaitSoundState(HWND, unsigned, WORD, LONG);
  36.  
  37. /* play.c */
  38. void            Play(void);
  39. BOOL            PlayNoteConvert(char *, int *);
  40.  
  41. /* file.c */
  42. void            FileNew(HWND hWnd);
  43. void            FileOpen(HWND hWnd);
  44. void            FileSave(HWND hWnd);
  45. void            FileSaveAs(HWND hWnd);
  46. BOOL            FileQuerySave(HWND Hdlg);
  47.  
  48. /*********************************************************************/
  49. /* Global data and structures                                        */
  50. /*********************************************************************/
  51.  
  52. #define MAXFILESIZE 32000
  53.  
  54. extern HANDLE  hAccelTable;
  55. extern HANDLE  hInst;
  56. extern HWND    hWindow;
  57. extern HMENU   hMenu;
  58. extern HWND    hEditWindow;
  59. extern HANDLE  hHourGlass;
  60. extern HANDLE  hNote;
  61. extern HANDLE  hText;
  62. extern HANDLE  hData, hClipData;
  63. extern LPSTR   lpData, lpClipData;
  64.  
  65. extern char    WindowName[];
  66. extern char    ClassName[];
  67. extern char    HelpFileName[80];
  68.  
  69. typedef struct {
  70.   int open;
  71.   int numvoices;
  72.   int source;
  73.   int voice;
  74.   int tempo;
  75.   int volume;
  76.   int mode;
  77.   int pitch;
  78.   int value;
  79.   int length;
  80.   int cdots;
  81.   int shape;
  82.   int repeat;
  83.   long lfreq;
  84.   int frequency;
  85.   int fraction;
  86.   int duration;
  87.   int qsize;
  88.   int tcount;
  89.   int waitstate;
  90. } SndDef;
  91.  
  92. /*********************************************************************/
  93. /* Control IDs                                                       */
  94. /*********************************************************************/
  95.  
  96. #define     IDC_FILENAME         0x400
  97. #define     IDC_EDIT             0x401
  98. #define     IDC_FILES            0x402
  99. #define     IDC_PATH             0x403
  100. #define     IDC_LISTBOX          0x404
  101.  
  102.