home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / dll / tegosnd.h < prev   
Encoding:
C/C++ Source or Header  |  1994-01-16  |  2.5 KB  |  86 lines

  1. /*================================================================
  2.  File name: TegoSND.h
  3.  
  4.  TegoSND.DLL containd sp_ functions for playing WAV files
  5.  through the PC speaker.
  6.  
  7.  (C) Copyright TegoSoft Inc. 1989-1994, (R) All rights reserved.
  8.  TegoSoft Inc.
  9.  Box 389
  10.  Bellmore, NY 11710
  11.  Phone:(516)783-4824
  12.  ===============================================================*/
  13.  
  14.  
  15. extern "C" 
  16. {
  17. /*------- Open a session ---------*/
  18. /* Old version */
  19. int  FAR PASCAL _export  sp_OpenWaveSession     ( HWND  hWnd,
  20.                           LPSTR lpstrFileName );
  21. /* New version */
  22. int  FAR PASCAL _export  sp_OpenSession ( LPSTR lpstrFileName );
  23.  
  24.  
  25. int  FAR PASCAL _export sp_OpenCustomSession   ( HWND  hWnd,
  26.                          LPSTR lpstrFileName, 
  27.                          long  lSamplingRate  );
  28.  
  29. long FAR PASCAL _export sp_GetSoundSizeInBytes ( int iSessionHandler );
  30.  
  31. long FAR PASCAL _export sp_GetSamplingRate     ( int iSessionHandler );
  32.  
  33. long FAR PASCAL _export sp_PlaySnd             ( int iSessionHandler,
  34.                          long lStartPoint,
  35.                          long lEndPoint );
  36.  
  37. int FAR PASCAL _export  sp_CloseSession        ( int iSessionHandler );
  38.  
  39. int FAR PASCAL _export  sp_SetSpeed            ( int iSessionHandler,
  40.                          int iSpeed );
  41.  
  42. int FAR PASCAL _export  sp_GetSample           ( int  iSessionHandler,
  43.                          long lIndex );
  44.  
  45. int FAR PASCAL _export  sp_Copy2Clip           ( int  iSessionHandler,
  46.                          long lStartByte,
  47.                          long lEndByte);
  48.  
  49. int FAR PASCAL _export  sp_IsClipboard         ( void );
  50.  
  51. long FAR PASCAL _export sp_PlayClipboard       ( void );
  52.  
  53. int  FAR PASCAL _export sp_CreateNewWave       ( LPSTR sFileName, 
  54.                          long  lSampRateSelected );
  55.  
  56. int FAR PASCAL _export  sp_CopyClip2Session    ( int  iSessionHandler,
  57.                          long lFromByteLocation );
  58.  
  59. int  FAR PASCAL _export  sp_MouseON  ( int iSessionHandler );
  60. int  FAR PASCAL _export  sp_MouseOFF ( int iSessionHandler );
  61.  
  62. int FAR PASCAL _export   ts_WaveDeviceCanPlay ( void );
  63.  
  64. }
  65.  
  66.  
  67. /*----------
  68.  #definition
  69.  ----------*/
  70.  
  71. #define SP_OK                          1
  72. #define SP_NO_MORE_SESSIONS_AVAILABLE -1
  73. #define SP_CANNOT_OPEN_FILE           -2
  74. #define SP_FILESIZE_ERROR             -3
  75. #define SP_NOT_OK                     -4
  76. #define SP_INVALID_SAMPLING_RATE      -5
  77. #define SP_ALLOCATION_FAILURE         -6
  78. #define SP_READ_ERROR                 -7
  79. #define SP_INVALID_SESSION_HANDLER    -8
  80. #define SP_NOT_ENOUGH_RAM             -9
  81.  
  82. #define SP_START_OF_FILE        -1L
  83. #define SP_END_OF_FILE          -2L
  84.  
  85. #define SP_WAVE_OVERHEAD_BYTES 100
  86.