cdpar.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 1983-2013 Trevor Wishart and Composers Desktop Project Ltd
  3. * http://www.trevorwishart.co.uk
  4. * http://www.composersdesktop.com
  5. *
  6. This file is part of the CDP System.
  7. The CDP System is free software; you can redistribute it
  8. and/or modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2.1 of the License, or (at your option) any later version.
  11. The CDP System is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Lesser General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the CDP System; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  18. 02111-1307 USA
  19. *
  20. */
  21. #define CHECKBUTTON (0)
  22. #define SWITCHED (1)
  23. #define LINEAR (2)
  24. #define LOG (3)
  25. #define PLOG (4)
  26. #define FILE_OR_VAL (5)
  27. #define FILENAME (6)
  28. #define NUMERIC (7)
  29. #define GENERIC_FILENAME (8)
  30. #define STRING_A (10)
  31. #define STRING_B (11)
  32. #define STRING_C (12)
  33. #define STRING_D (13)
  34. #define TIMETYPE (14)
  35. #define SRATE (15)
  36. #define TWOFAC (16)
  37. #define WAVETYPE (17)
  38. #define POWTWO (18)
  39. typedef struct applic *aplptr;
  40. int cdparams(int process,int mode,int filetype,int infilesize,int insams,int srate,
  41. int channels,int wanted,int wlength,int linecnt,float arate,float frametime,
  42. double nyquist,double duration);
  43. int parse_indata(int arc,char *argv[],int *process,int *mode,int *infilecnt,int *filetype,int *infilesize,
  44. int *insams,int *srate,int *channels,int *wanted,int *wlength,int *linecnt,
  45. float *arate,float *frametime,double *nyquist,double *duration);
  46. int does_process_accept_conflicting_srates(int process);
  47. int get_param_names(int process,int mode,int total_params,int user_params,aplptr ap);
  48. int setup_flagnames(int process,int mode,int bare_flags,aplptr ap);
  49. int establish_display(int process,int mode,int total_params,float frametime,double duration,aplptr ap);
  50. int set_legal_param_structure(int application_no,int mode, aplptr ap);
  51. int set_legal_option_and_variant_structure(int process,int mode,aplptr ap);
  52. int deal_with_formants(int process,int mode,int channels,aplptr ap);
  53. int deal_with_special_data(int process,int mode,int srate,double duration,double nyquist,int wlength,int channels,aplptr ap);
  54. int get_param_ranges(int process,int mode,int total_params,double nyquist,float frametime,
  55. float arate,int srate,int wlength,int insams,
  56. int channels,int wanted,int filetype,int linecnt,double duration,aplptr ap);