AppleWin icon indicating copy to clipboard operation
AppleWin copied to clipboard

Disk Drive Sound

Open tomcw opened this issue 10 years ago • 19 comments

BerliOS Feature Request #2118

Date: 2006-April-07 16:13 Submitted By: jimc Category: none Assigned To: none Priority: 5

Date: 2006-Apr-07 16:13 Sender: jimc Logged In: YES user_id=27069 Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

There is a Virtual ][ emulator for MacOS that features a disk drive sound that's pretty accurate and really adds to the whole experience of emulation. To me it makes a big difference and actually makes me FEEL like I'm using a real Apple II. I've compaired loading sounds with the emulator and a real Apple and it's pretty much right-on... I'm crazy enough to have memorized quite a few booting sound patterns.... especially the Electronic Arts 'Clickity-Click'! ..... Yeah I'm sad

Would something like that be possible with AppleWin as I feel that a feature that everyone would appreciate!

Thanks

tomcw avatar May 23 '14 21:05 tomcw

Date: 2006-Jul-14 19:05 Sender: johnsonlam Logged In: YES user_id=30068 Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

This sounds great, can anyone please ask the author of Virtual ][ to donate code, otherwise it's wasting duplicate effort to create something already exist.

The existing AppleWin team already have a lot of works to do!

tomcw avatar May 23 '14 21:05 tomcw

Date: 2008-Jun-22 01:26 Sender: jimc Logged In: YES user_id=27069 Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)

Hello! It's been a while since I've been on here, but I originally posted this request on the disk drive sound.
The Virtual II software for the Mac is Shareware and not open sourced.. so can't get the code, but no worry because earlier today, I finally got my disk drive code close enough for review. A couple of weeks ago, I grabbed the AppleWin source out of curiosity and decided to give it a go. I apologize to any DirectX purists out there, but since I don't know know $%@#$ about it, I used the SDL_Mixer library for the drive sounds. I used Copy II+ verify disk to sync the drive sounds with the screen. It's not 100% perfect, but I used the 'newtrack' variable as a basis, so I don't take into account quarter or half-tracks. Loader like Electronic Arts don't emit as much ticks as they normally would, but I've got it pretty close. -current issues: due to the time delays I have in place, the boot 'ctrl-g' sound repeats when it encounters the Sleep() function.. any ideas? also I haven't implemented the I/O error buzz as of yet. So if the developers are interested, I can provide my compiled version for review and my source changes as soon as I clean up my other failed attempts! :) ..sorry for the long post, but I'm excited about getting this done!

tomcw avatar May 23 '14 21:05 tomcw

Date: 2011-Jun-10 22:34 Sender: tomch Logged In: YES user_id=25188 Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19 ( .NET CLR 3.5.30729; .NET4.0E)

Also requested here: https://developer.berlios.de/feature/?func=detailfeature&feature_id=5350&grou p_id=6117

tomcw avatar May 23 '14 21:05 tomcw

Date: 2013-Mar-22 23:22 Sender: tomch Logged In: YES user_id=25188 Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0

[Email from Todd, LA]

Your program has been a joy to use. There is only one thing I feel is missing.

I feel you should add an option to turn on a drive sound. When I hit save for a level, I want to hear the old disc drive churning. And it'd be fun to hear the disc read problem sound, too.

tomcw avatar May 23 '14 21:05 tomcw

Date: 2013-Aug-26 11:26 Sender: tomch Logged In: YES user_id=25188 Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

From cea2, "Drive sounds for AppleWin?" (B Taylor)

This may sound like too big a challenge for a future version of AppleWin, but would it be possible to add drive sound emulation to the program (only if the drive is set to `Authentic speed' in the options), like VICE has done in its myriad programs?

tomcw avatar May 23 '14 21:05 tomcw

Has progress been made on this? It's something I'd love to see.

atylmo avatar Sep 10 '19 20:09 atylmo

No progress... I'll have to check if I ever got that patch & sound samples from jimc in 2008.

tomcw avatar Sep 15 '19 20:09 tomcw

Haha, I'm sorry. It's just something I've come to appreciate in computer emulation. The only open-source project I know of that does it for the Apple II is OpenEmulator. It works well, but it's pretty much Mac-only and I don't know where to even start to port it.

I wonder if you could collaborate with them and share their samples?

atylmo avatar Sep 18 '19 07:09 atylmo

Virtual II also make disks noises

Le 18 sept. 2019 à 09:12, atylmo <[email protected]mailto:[email protected]> a écrit :

Haha, I'm sorry. It's just something I've come to appreciate in computer emulation. The only open-source project I know of that does it for the Apple II is OpenEmulatorhttps://github.com/openemulator/openemulator. It works well, but it's pretty much Mac-only and I don't know where to even start to port it.

I wonder if you could collaborate with them and share their samples?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/AppleWin/AppleWin/issues/9?email_source=notifications&email_token=AD4OSKG55HLXW32CFIWSAC3QKHIFPA5CNFSM4APXSBM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67BXIQ#issuecomment-532552610, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD4OSKH4K2HZIHVLEL3GTILQKHIFPANCNFSM4APXSBMQ.

jvernet avatar Sep 18 '19 10:09 jvernet

Ah yeah, it does. They're lovely :) Maybe some sort of agreement could be hashed out there since it's not open source.

I also found these:https://github.com/ogoguel/activegs-ios/blob/master/Common.res/Apple_2_Disk_Drive_Sounds.txt. They seem like they could be a good fit for AppleWin.

atylmo avatar Sep 28 '19 22:09 atylmo

Here are the 6 .wav's from jimc's 2008 patch:

diskii-sounds-jimc.zip

From the Disk.cpp patch: (about the 3 track sounds)

	x = abs(curTrack - lastTrack);
	if (x < 2) {Mix_PlayChannel(1, smtrack_snd, 0);} // one click
	if (x < 16 && x > 4) {Mix_PlayChannel(1, mtrack_snd, 0);} // medium sweep
	if (x > 16) {Mix_PlayChannel(1, track_snd, 0);} // full sweep

@atylmo: How do these compare with the github sounds you found?

tomcw avatar Nov 24 '19 16:11 tomcw

I like them! :) This set is more customizable for different patterns. The other sounded noticeably repetitious in the ActiveGS iOS app. I do quite like its spin-up sounds, though.

They sound wonderful to me! I haven't built it with the patch but I'm all for them.

atylmo avatar Nov 25 '19 00:11 atylmo

I know it's been a while since the last post on this issue, but I found out that MAME's Apple //c emulation recreates drive sounds nicely (if a bit inaudible). If we could perhaps fork those drive sounds into Applewin, that could be fantastic.

robinhood2014 avatar Jun 19 '21 04:06 robinhood2014

The drive sounds we're looking for probably reside in this ZIP file. Inside it you'll find a file called "341-0027-a.p5"; feel free to make of that what you will. https://archive.org/download/mame-merged/mame-merged/a2diskiing.zip

robinhood2014 avatar Apr 16 '23 03:04 robinhood2014

@robinhood2014 That file is the ROM for the Disk II interface card. When you turn on your computer to boot a disk or type PR#6, that's the code that runs.

MAME's disk drive samples are here. They are licensed CC0. https://github.com/mamedev/mame/tree/master/samples

xotmatrix avatar Apr 16 '23 06:04 xotmatrix

Ah yes. So the question becomes, how do we integrate those sounds into AppleWin? If necessary, we could include them in the zip file.

robinhood2014 avatar Apr 16 '23 15:04 robinhood2014

Just came here wondering about this possibility in AppleWin. The Floppy Emu device has a relay based optional device to at least give it some sound that corresponds to Disk II sounds. I thought man, I'd pay more for a device that plays audio samples of real drives. And then I wondered about AppleWin. Would love to see it here, though admittedly I don't use AppleWin all that much because I mostly use my real Apple IIe. But I think it would be a really nice addition.

TheShanMan avatar Apr 13 '24 04:04 TheShanMan

Yes, I'm following this thread eagerly too, it would be fantastic to have floppy disk sounds in AppleWin, it would complete the feel of the emulation.

xandark avatar Apr 24 '24 05:04 xandark

Yes, lots of continued interest in this (spanning nearly 2 decades now!), so thanks for continuing to put this back on our radar. I agree it would be great to get this done.

tomcw avatar Apr 26 '24 20:04 tomcw