Page 1 of 1

Wav to CAS

Posted: Fri Apr 09, 2010 1:17 am
by retrofreak90
Yep, yet ANOTHER question (sorry). How do I convert Wav files to CAS?

There are a few WAVs in the archive that don't seem to work for me (Module Man, Mr Dig), but the WAVs work fine.

Re: Wav to CAS

Posted: Fri Apr 09, 2010 7:56 am
by sixxie
For WAV to CAS you can start XRoar in a mode that rewrites anything it loads out to a CAS file. Start it with the "-tapehack" option, then press Control+W to give a filename for CAS output. Then Control+L to attach the WAV and load your program. The output file should contain CAS data when you quit. This works by intercepting ROM calls, so extra special loaders will defeat it.

CAS to WAV is simpler (as it's just converting the bits into a waveform). I have a little Perl script here that does the job, though not sure what's involved in running it under Windows: http://www.6809.org.uk/tmp/da/cas2wav.pl

Re: Wav to CAS

Posted: Sat Apr 10, 2010 2:31 am
by retrofreak90
Cool, thanks Sixxie.

Re: Wav to CAS

Posted: Wed Jun 02, 2010 6:07 pm
by prime
sixxie wrote:For WAV to CAS you can start XRoar in a mode that rewrites anything it loads out to a CAS file. Start it with the "-tapehack" option, then press Control+W to give a filename for CAS output. Then Control+L to attach the WAV and load your program. The output file should contain CAS data when you quit. This works by intercepting ROM calls, so extra special loaders will defeat it.
I can't seem to get this working (on windows), running the exe with -tapehack results in nothing happening, running it without and xroar starts normally.
Windows XP pro SP3, Xroar 0.23-windows32.

stderr.text contains :
xroar.exe: unrecognised option `-tapehack'

So do I need a perticular version of the xroar binaries or has it been accidentally disabled in the release version ?

Cheers.

Phill.

Re: Wav to CAS

Posted: Wed Jun 02, 2010 6:23 pm
by sixxie
Sorry, try the 20100119 snapshot (edit: or I just pushed out a build today) from http://www.6809.org.uk/tmp/xroar/. I should really get around to another proper release.

Re: Wav to CAS

Posted: Wed Jun 02, 2010 9:05 pm
by prime
sixxie wrote:Sorry, try the 20100119 snapshot (edit: or I just pushed out a build today) from http://www.6809.org.uk/tmp/xroar/. I should really get around to another proper release.
Excelent that's exactly what I needed to fix the backtrack.cas from the archive which seems to have the bytes not aligned properly, I'll upload a version where they are.

Cheers.

Phill.