Cepstrumc_def.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Cepstrumc_def.h
  2. *
  3. * Copyright (C) 1994-2008 David Weenink
  4. *
  5. * This code is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This code is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /*
  19. djmw 20020812 GPL header
  20. djmw 20080122 Version 1: float -> double
  21. */
  22. #define ooSTRUCT Cepstrumc_Frame
  23. oo_DEFINE_STRUCT (Cepstrumc_Frame)
  24. oo_INT (nCoefficients)
  25. #if oo_READING_BINARY
  26. oo_VERSION_UNTIL (1)
  27. oo_FLOAT_VECTOR_FROM (c, 0, nCoefficients)
  28. oo_VERSION_ELSE
  29. oo_DOUBLE_VECTOR_FROM (c, 0, nCoefficients)
  30. oo_VERSION_END
  31. #else
  32. oo_DOUBLE_VECTOR_FROM (c, 0, nCoefficients)
  33. #endif
  34. oo_END_STRUCT (Cepstrumc_Frame)
  35. #undef ooSTRUCT
  36. #define ooSTRUCT Cepstrumc
  37. oo_DEFINE_CLASS (Cepstrumc, Sampled)
  38. oo_DOUBLE (samplingFrequency) // from Sound
  39. oo_INT (maxnCoefficients)
  40. oo_STRUCT_VECTOR (Cepstrumc_Frame, frame, nx)
  41. #if oo_DECLARING
  42. void v_info ()
  43. override;
  44. #endif
  45. oo_END_CLASS (Cepstrumc)
  46. #undef ooSTRUCT
  47. /* End of file Cepstrumc_def.h */