FileAlawInv.hx 929 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // WAV/AU Flash player with resampler
  3. //
  4. // Copyright (c) 2009, Anton Fedorov <datacompboy@call2ru.com>
  5. //
  6. /* This code is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 only, as
  8. * published by the Free Software Foundation.
  9. *
  10. * This code is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. * version 2 for more details (a copy is included in the LICENSE file that
  14. * accompanied this code).
  15. */
  16. package fmt;
  17. // FileAlawInv: a-law encoded sound
  18. // Inverted bitorder
  19. class FileAlawInv extends fmt.FileRaw {
  20. public function new() {
  21. super();
  22. rate = 8000;
  23. channels = 1;
  24. chunkSize = 1;
  25. align = 0;
  26. sndDecoder = new DecoderG711a(8, true);
  27. init();
  28. }
  29. }