zx_tape_to_wav 1.0.2 zx_tape_to_wav: ^1.0.2 copied to clipboard
Conversion library of .TAP/.TZX files (a ZX-Spectrum emulator data format) into .WAV sound files.
example/zx_tape_to_wav_example.dart
import 'dart:io';
import 'package:zx_tape_to_wav/zx_tape_to_wav.dart';
void main() async {
var sourceFilePath = 'assets/roms/RENEGADE.tzx';
var outputFileName = 'assets/out/RENEGADE.wav';
await new File(sourceFilePath).readAsBytes().then((input) =>
ZxTape.create(input)
.then((tape) =>
tape.toWavBytes(frequency: 44100, amplifySoundSignal: true))
.then((output) => new File(outputFileName).writeAsBytes(output)));
}