LPC_def.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* LPC_def.h
  2. *
  3. * Copyright (C) 1994-2018 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. #define ooSTRUCT LPC_Frame
  19. oo_DEFINE_STRUCT (LPC_Frame)
  20. oo_INT (nCoefficients)
  21. #if oo_READING_BINARY
  22. oo_VERSION_UNTIL (1)
  23. oo_obsoleteVEC32 (a, nCoefficients)
  24. oo_FLOAT (gain)
  25. oo_VERSION_ELSE
  26. oo_VEC (a, nCoefficients)
  27. oo_DOUBLE (gain)
  28. oo_VERSION_END
  29. #else
  30. oo_VEC (a, nCoefficients)
  31. oo_DOUBLE (gain)
  32. #endif
  33. oo_END_STRUCT (LPC_Frame)
  34. #undef ooSTRUCT
  35. #define ooSTRUCT LPC
  36. oo_DEFINE_CLASS (LPC, Sampled)
  37. /* samplingPeriod */
  38. oo_DOUBLE (samplingPeriod) /* from Sound */
  39. oo_INT (maxnCoefficients)
  40. oo_STRUCT_VECTOR (LPC_Frame, d_frames, nx)
  41. #if oo_DECLARING
  42. void v_info ()
  43. override;
  44. #endif
  45. oo_END_CLASS (LPC)
  46. #undef ooSTRUCT
  47. /* End of file LPC_def.h */