Wav to CAS

A place to discuss everything Dragon related that doesn't fall into the other categories.
Post Reply
retrofreak90
Posts: 15
Joined: Thu Nov 27, 2008 1:02 am

Wav to CAS

Post 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.
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Wav to CAS

Post 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
retrofreak90
Posts: 15
Joined: Thu Nov 27, 2008 1:02 am

Re: Wav to CAS

Post by retrofreak90 »

Cool, thanks Sixxie.
prime
Posts: 268
Joined: Fri Apr 10, 2009 1:40 am

Re: Wav to CAS

Post 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.
Last edited by prime on Wed Jun 02, 2010 6:24 pm, edited 1 time in total.
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Wav to CAS

Post 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.
prime
Posts: 268
Joined: Fri Apr 10, 2009 1:40 am

Re: Wav to CAS

Post 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.
Post Reply