123456789101112131415161718192021222324252627282930 |
- //
- // WAV/AU Flash player with resampler
- //
- // Copyright (c) 2009, Anton Fedorov <datacompboy@call2ru.com>
- //
- /* This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- */
- package fmt;
- // FileRaw: stream raw file reader. Subclass it to define used sound decoder
- class FileAlaw extends fmt.FileRaw {
- public function new() {
- super();
- rate = 8000;
- channels = 1;
- chunkSize = 1;
- align = 0;
- sndDecoder = new DecoderG711a(8, false);
- init();
- }
- }
|