home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / rxwavsrc.zip / RxWavTest.c < prev    next >
C/C++ Source or Header  |  2000-03-06  |  2KB  |  59 lines

  1. /*  RxWav
  2.    Copyright (C) 1999  Giorgio Vicario
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.  
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA     */
  17.  
  18. #define INCL_REXXSAA
  19. #include <os2emx.h>
  20. #include <stdlib.h>
  21. #include <stdio.h>
  22. #include <string.h>
  23. #include <regexp.h>
  24. #include <math.h>
  25. #include <float.h>
  26. #include "RxWav.h"
  27.  
  28. /***********************************************************************
  29. Test
  30. ***********************************************************************/
  31. ULONG
  32. WavTest (PCSZ name, LONG argc, const RXSTRING * argv,
  33.      PCSZ queuename, PRXSTRING retstr)
  34. {
  35.   PSHORT pCh, pCh2, ptemp;
  36.   APIRET rc;
  37.   int i, frame, FDec;
  38.   int campioni, puntifft, Kn2, Koverlap;
  39.  
  40.   if (argc != 2)
  41.     {
  42.       SendMsg (FUNC_TEST, ERR_NUMERO_PARAMETRI);
  43.       return INVALID_ROUTINE;
  44.     }
  45.  
  46.   if (!sscanf (argv[0].strptr, "%d", &pCh))
  47.     {
  48.       SendMsg (FUNC_TEST, ERR_PUNTATORE_ERRATO);
  49.       return INVALID_ROUTINE;
  50.     }
  51.   pCh = AllineaCh (pCh, (ULONG) 2, FUNC_TEST);
  52.   if (!pCh)
  53.     return INVALID_ROUTINE;
  54.  
  55.   sprintf (retstr->strptr, "%f", ERR_OK);
  56.   retstr->strlength = strlen (retstr->strptr);
  57.   return VALID_ROUTINE;
  58. }
  59.