FileGsm.hx 943 B

123456789101112131415161718192021222324252627282930
  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. // FileRaw: stream raw file reader. Subclass it to define used sound decoder
  18. class FileGsm extends fmt.FileRaw {
  19. public function new() {
  20. super();
  21. rate = 8000;
  22. channels = 1;
  23. chunkSize = 33;
  24. align = 0;
  25. sndDecoder = new DecoderGSM(264, 33);
  26. init();
  27. }
  28. }