aRts audio server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2KB

  1. /*
  2. Copyright (C) 2000 Stefan Westerfeld
  3. stefan@space.twc.de
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #include "artsflow.h"
  18. #include "stdsynthmodule.h"
  19. using namespace Arts;
  20. namespace Arts {
  21. class Synth_MUL_impl :public Synth_MUL_skel, public StdSynthModule
  22. {
  23. public:
  24. void calculateBlock(unsigned long samples)
  25. {
  26. unsigned long i;
  27. for(i = 0;i < samples; i++)
  28. outvalue[i] = invalue1[i] * invalue2[i];
  29. }
  30. };
  31. REGISTER_IMPLEMENTATION(Synth_MUL_impl);
  32. }