|
Joined: Nov 2003
Posts: 186 Likes: 1
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 186 Likes: 1 |
Hi all,
With the Dragon / CoCo driver.
Is there any way to control the format of tape output files? Currently they seem to be saved as WAV files, is there a way of saving them as CAS files?
Cheers.
Phill.
|
|
|
|
Joined: Dec 2015
Posts: 171 Likes: 11
Senior Member
|
Senior Member
Joined: Dec 2015
Posts: 171 Likes: 11 |
WAV is the only format which MAME currently supports for saving cassette images. This is partly because MAME emulates cassette tape interfaces on a lower level than many other emulators. Decoding data from the serial bitstreams MAME is designed to output would be difficult at best, though it would likely be more tractable for CPU-to-tape-drive interfaces based on USARTs and such than purely bitbanged interfaces such as the ZX Spectrum ULA which provide a much wider latitude for highly nonstandard formats.
|
|
|
|
Joined: Mar 2008
Posts: 229 Likes: 8
Senior Member
|
Senior Member
Joined: Mar 2008
Posts: 229 Likes: 8 |
You can easily convert the wav output to cas with several tools, like the ones listed here: https://archive.worldofdragon.org/index.php?title=Tape%5CDisk_Preservation
|
|
|
|
Joined: Nov 2003
Posts: 186 Likes: 1
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 186 Likes: 1 |
You can easily convert the wav output to cas with several tools, like the ones listed here: https://archive.worldofdragon.org/index.php?title=Tape%5CDisk_Preservation Yeah I know, I was just trying to save a step Cheers. Phill.
|
|
|
|
Joined: Nov 1999
Posts: 706 Likes: 8
Senior Member
|
Senior Member
Joined: Nov 1999
Posts: 706 Likes: 8 |
CAS is really a nightmarish format that really should not exist. Many of the CoCo/Dragon emulators patch the ROMs to emulate the cassette, resulting in a format that cannot be directly mapped to a waveform, but ends up in practice requires either partaking in the same hacks, or some processing step to essentially simulate the result of patching the ROMs.
At least this is what I remember when I first started working on the CoCo stuff two decades ago.
|
|
|
|
Joined: Mar 2008
Posts: 229 Likes: 8
Senior Member
|
Senior Member
Joined: Mar 2008
Posts: 229 Likes: 8 |
The CAS file for Dragon/CoCo is just a bit dump, nothing else.
I proposed an extension to the format to the author of the XRoar emulator that consist on some data appended at the end of the CAS file (named CUE extension), so it's transparent for machines and emulator and allow for some better reconstruction of the wave.
So, the CAS format is dead simple.
|
|
|
|
Joined: May 2009
Posts: 2,214 Likes: 382
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,214 Likes: 382 |
The CAS file for Dragon/CoCo is just a bit dump, nothing else. Are you sure? This page would seem to indicate that it can be just a bit dump, but it certainly seems to be capable of a bit more than that, which I suspect is part of the issue at hand: http://archive.worldofdragon.org/index.php?title=Tape%5CDisk_Preservation#CAS_File_Format
|
|
|
|
Joined: May 2004
Posts: 1,772 Likes: 34
Very Senior Member
|
Very Senior Member
Joined: May 2004
Posts: 1,772 Likes: 34 |
I generally think that MAME should always output lossless formats; leave the conversions to an external tool afterwards.
Trying to reduce down tapes etc.to formats such as cas, tzx etc. has caused so many problems over the years due to ambiguity in the specifications, as well as features being added then dropped. This has resulted in different encoders producing different results, sometimes conflicting with the output of other encoders and giving us cases where no one decoder can decode everything. The knock-on effect of this is decoders flip-flopping between supporting the output of one piece of software and another.
There are there are just too many 'badly' encoded files out there without MAME contributing to that by also supporting such things as these custom output formats, again to our own interpretation of the specifications.
In most cases we would have been better off just keeping the wav files, and maybe using a lossless encoder such as FLAC on them.
The same happened with CDs; and floppy images; different software implementing things in different ways, often resulting in images that are only 100% compatible with the software they were created with, despite using 'standard' formats.
|
|
|
|
Joined: Jan 2021
Posts: 174 Likes: 10
Senior Member
|
Senior Member
Joined: Jan 2021
Posts: 174 Likes: 10 |
I think the widespread homecomputer emulator file formats should be supported, else nobody will use MAME for them at all. But plain audio (WAV) version must be still there. This may be done through a plugin (possibly realtime-converting data like a unix-stream or such) to make the emulation internally see audio signals.
E.g. Atari XL datassette has a stereo tape head and could play speech/music from cassette during load of a program. E.g. cassette games by Europa played a long music track from cassette while loading. Some programs also started and stopped the tape to output speech (quiz questions and such) although this of course only worked in fixed order (you could not wind the tape through software). It would make sense to support such audio tracks through an additional MP3 file since WAV eats much disk space.
Last edited by =CO=Windler; 11/15/21 04:40 AM.
MAY THE SOFTWARE BE WITH YOU!
{weltenschule.de}
|
|
|
|
Joined: May 2009
Posts: 2,214 Likes: 382
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,214 Likes: 382 |
It would make sense to support such audio tracks through an additional MP3 file since WAV eats much disk space. Ah, yes, because we live in 1999 and terabyte-sized drives are still a dream of the future.
|
|
|
2 members (Dodg, yugffuts),
357
guests, and
0
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,320
Posts121,921
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|