Unfortunately caslink2 does not handle cas files so isn't much use for me.
@Buleste,
did I get it right you are doing a wav encoder for your device? I recommend giving 9600hz wav another try.
I updated my package, now there's a 9600Hz wav in there to try out straight away with bload"cas:",r . It's the software sprite demo.
https://sites.google.com/site/tueftlerlabs/home/downloads/lw...
lwav.zip in https://sites.google.com/site/tueftlerlabs/home/downloads/
The deal is that 9600Hz is small wav (and the wav zips even better) and plain simple generator code.
None of the usual calculations, just dump 4 ppi states in 4 samples, tell 9600hz in wav header, done.
I have tried 9600Hz at both 1200 and 2400 baud and at 1200 the games at least tried to load but failed whereas at 2400 they weren't even 'heard' by my MSX. 14400 is still the best sample rate.
What's the point not supporting CAS files from the start? If I have to convert to WAV, I'd rather wire the play/pause button to remote control on MSX! Way simpler than using a whole arduino to do it!
(...) I'd rather wire the play/pause button to remote control on MSX! (...)
Play/Pause button from a cheap MP3 player!
I would love to support cas files but as I've said before its beyond my skills as a programmer. If you wish to do it them please go ahead tvalenca.
Again the idea of the project is to create a cheap sdcard system for most 8-bit computers with full motor control not just the MSX. However due to an updated cas2wav converting cas files to wavs is easy.
I don't have any experience with arduino, but maybe it won't be an issue, because the CAS file format is well-documented and has some opensource code available, so it will be easy to adapt and recreate. Maybe the only issue is to keep a continous data flow, but since it is smaller, the arduino will have less data to process and the code will not need to be too much optimized...
Which language you use to program the arduino? C?
C or C++
At 2400 baud the PPI pin wiggles at 9600hz.
when 14400 loads better than 9600... maybe at 9600 the resampling code ended up making 1.001 samples per ppi state. while required is exactly 1.
the 9600hz wav I posted loads over plain door bell wire
and in openmsx.
and it is easy to code the wav generator: throw the resampling code out of the window, done
@ hit9918 : thank You for sharing Java code, I found it nice to read something different from C/C++/python
As I said before, I reworked CasLink2 C code with floating point variables for managing sampling rate of 11025Hz and 44100Hz WAV files representing MSX cassette streams @ 1200 baud rate or 2400 baud rate.