• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

DAC Attack! for ZuluSCSI Audio

saybur

Well-known member
Over the past few weeks I've been doing some tinkering with ZuluSCSI boards and figured out a way to get a ZuluSCSI RP2040 to output 44.1KHz S/PDIF audio over one of the expansion pins. Combined with some awesome development work from @rabbitholecomputing to add full BIN/CUE support for CD-ROMs, this means that ZuluSCSI RP2040s now have experimental support for audio CDs, including the mixed-mode disks used by lots of games and other software.

To actually do anything useful with the S/PDIF signal it needs to get piped into an appropriate digital-analog converter to create the line-level audio used by retro Macs and PC sound cards. I spun up a board called "DAC Attack!" for this: it's a simple little DAC designed to be easy to mount on top of a ZuluSCSI and connect to its expansion header. Here's a picture of one in action:

dac-attack-mounted.jpg

Right now this hardware is solidly in 'early adopter' territory: at present nobody makes these boards, my prototypes have only received light testing, and I lack the equipment to do a rigorous analysis of how high-quality the audio output is. That said, the design is available under a CERN Open Hardware License (strongly reciprocal), and can be almost 100% assembled by JLCPCB (and likely others). Hopefully this thing proves to be useful, or barring that, at least interesting! :) Check it out at https://github.com/saybur/dac-attack.

Since the output from the ZuluSCSI is just normal TTL S/PDIF there are other ways to get at the audio as well. During testing I used a common optical audio module, an Everlight PLT237/T10WH, which can be directly attached to the relevant pins on the ZuluSCSI. That produces an optical link that you can put into an appropriate DAC, including some cheap ones on Amazon. I can provide more info about this if anyone is interested.

Audio support currently requires a separate firmware file, which is available at https://github.com/ZuluSCSI/ZuluSCSI-firmware/releases with the "ZuluSCSI_RP2040_Audio" prefix. As mentioned this is EXPERIMENTAL and does require modding your boards. It also isn't perfect yet: activity on other virtual volumes can cause the audio to stutter a bit, though hopefully that can be improved in the future. If you try any of this, please post about your experience, I'd love to hear how things go!
 

Mu0n

Well-known member
That's super cool.

As a frequent user of MSDOS games from the 1990-1997 era, I live through the pain of deciding whether to launch a game in:

1) MS-DOS with only .iso support, forgetting about redbook cd audio support, using SHSUCD to mount them
2) Win98se with .bin/.cue support using Daemon Tools v3.47, technically supporting playing cd audio through windows media player but having hit or miss support in games because there is no software SPDIF mechanism
3) my real 486DX2/66 that maxes out at 512 mb drives (so, feeling cramped for some isos) and no optical cd drive

I wish there was an all-in-one solution for both virtual disk (hard and optical) drive images and this cd audio capability for PCs! I use a compact flash equivalent that connects to my IDE port (pin equivalency), but it's this simple one drive per card deal, nothing more.
 

saybur

Well-known member
3) my real 486DX2/66 that maxes out at 512 mb drives (so, feeling cramped for some isos) and no optical cd drive
That's almost identical to what got me going with this project in the first place: I have a small form factor 486 I upgraded to a DX2/66, but it didn't really have room for an optical drive. I figured somebody would have made a Gotek-like device that might work well in its place, and nope, doesn't really exist: there are other options, like a $200+ out of stock IDE optical emulator, or the SCSI-based MacSD, but I wanted something pretty inexpensive that had an open-source firmware. I already had ZuluSCSI boards, and they've got these nice looking expansion pins...

I wish there was an all-in-one solution for both virtual disk (hard and optical) drive images and this cd audio capability for PCs! I use a compact flash equivalent that connects to my IDE port (pin equivalency), but it's this simple one drive per card deal, nothing more.
This should be capable of doing that that with an ISA SCSI card; those are still available for pretty cheap on eBay. The ZuluSCSI pictured above is actually sitting in my 486 right now. I've been busy enough with this board and the audio code, so I haven't gotten around to working through the driver stuff in DOS yet.
 

ymk

Well-known member
I wish there was an all-in-one solution for both virtual disk (hard and optical) drive images and this cd audio capability for PCs! I use a compact flash equivalent that connects to my IDE port (pin equivalency), but it's this simple one drive per card deal, nothing more.

There is. It's called MacSD and it has been around since 2020.

You can boot a PC from it without any IDE devices.
You can emulate CD drives, complete with CD audio, in DOS and Windows.
You can also use it as a wavetable synthesizer for games that support General MIDI music.
 

paws

Well-known member
So with this I'd be able to keep a bunch of audio CDs on the SD card and play them with any Mac app that lets me play CDs? Even on old, slow models? That's pretty good. How do I change the CD, though?
 

saybur

Well-known member
You can tweak the configuration a couple ways, but the "default" way (and what I have been using) is ejecting the disk from within the operating system. That advances to the next disk. There's also new support for an eject button as well using the one leftover pin the audio doesn't occupy.
 

defor

You can make up something and come back to it late
Staff member
There is. It's called MacSD and it has been around since 2020.

You can boot a PC from it without any IDE devices.
You can emulate CD drives, complete with CD audio, in DOS and Windows.
You can also use it as a wavetable synthesizer for games that support General MIDI music.
always good to have competition and options though!
Didn't realize you were on the MLA- message incoming :)
 
Top