[Patch] Floppy drive noises

Post new patches here!
Locked
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

[Patch] Floppy drive noises

Post by leilei »

Here it is, my hacky simulated floppy drive head noise code and samples!

Notes/bugs:
- Only works properly for 100ms sound buffer length
- only cares about 3.5" as I haven't recorded any 5.25" drives at this point
- Hard drives and keyboards heard in previous videos are not here
- There's a click in the loop of the motor noise so there's probably an offbyone somewhere.
- Patch doesn't edit the makefiles
- Sound comes from the right with a bit of a hrtf hack attempt to position it downward
- No configuration settings at this point
Attachments
leilei-disknoise.patch
(6.75 KiB) Downloaded 638 times
disknoise.c
(26.33 KiB) Downloaded 633 times
disknoise.h
(194 Bytes) Downloaded 607 times
Last edited by leilei on Sat 20 Apr, 2019 8:00 am, edited 1 time in total.
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: [Patch] Floppy drive noises

Post by leilei »

Samples in this second post for attachment limit reasons. Extract to samples/leilei_35/ and the drives should make noises
Attachments
leilei_35.zip
(55.72 KiB) Downloaded 640 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Patch] Floppy drive noises

Post by SarahWalker »

This doesn't seem to work at all with sound buffer lengths other than 100ms.

Seeking sounds a bit off to me. It sounds like the step rate is too low - I've heard Amiga drives running that slow with some loaders, but never on the PC.
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: [Patch] Floppy drive noises

Post by leilei »

I tried to time it against the bootup seek of my drives and a DOS scandisk surface scan after booting from a Win98 startup disk. It's possible the notyet hack I needed to do made the seeking slower somewhere (there is an unwanted bug of the drive not responding sometimes, I tried to raise the speed of the seek slightly until it disappeared)
Gadget2006
Posts: 1
Joined: Sun 17 Nov, 2019 1:31 pm

Re: [Patch] Floppy drive noises

Post by Gadget2006 »

This is a very interesting patch, thank you for sharing! ^^ Is this idea still in development? I tried compiling and running pcem with this patch applied, but didn't get very far... the patch doesn't apply to v15 directly, and trying to apply it manually made the emulator crash. Applying the patch against the previous version (v14) applies cleanly but the emulator seems to hang on bios. There's a sound of the fdd drive activating during the floppy seek test on boot, and then nothing happens, maybe the fdd controller stops sending commands or something like that, not sure... At any rate, this is very interesting, hope this can eventually be updated and finished :)
ecksemmess
Posts: 183
Joined: Wed 18 Mar, 2015 5:27 am

Re: [Patch] Floppy drive noises

Post by ecksemmess »

Been a while, but yes I agree, this is excellent work! Thanks for getting it this far, would love to see it finished someday. :)
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: [Patch] Floppy drive noises

Post by leilei »

I'd imagine the new timer stuff in v15 would have regressed this hard by now. I haven't found the interest/time to revise for that
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: [Patch] Floppy drive noises

Post by leilei »

Maybe this feature could be a good candidate for the plugin system? Optional and own thread etc... :?
NickHammerich
Posts: 7
Joined: Thu 20 Jan, 2022 5:49 am

Re: [Patch] Floppy drive noises

Post by NickHammerich »

How to compile this plugin?
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: [Patch] Floppy drive noises

Post by leilei »

it's not a plugin. This was written long before the plugin system, and it'd probably need a major rebasing on the latest tree.
daniil2009
Posts: 5
Joined: Sat 08 Oct, 2022 7:26 am

Re: [Patch] Floppy drive noises

Post by daniil2009 »

make tutorial about applying this patch and compile
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: [Patch] Floppy drive noises

Post by leilei »

no.
daniil2009
Posts: 5
Joined: Sat 08 Oct, 2022 7:26 am

Re: [Patch] Floppy drive noises

Post by daniil2009 »

W H Y ? all what i am found is replace patch files but i doesnt find any .patch files P.S i am not programmer all what i can is compile program and whrite simple bat programs
User avatar
MichaelJManley
Posts: 54
Joined: Fri 17 Dec, 2021 9:42 pm

Re: [Patch] Floppy drive noises

Post by MichaelJManley »

I am going to close this, Its for an older release and don't need to keep getting responses on it when said person is no longer maintaining anymore.

Might look into adding things like this in a future release, but it be a while.
Locked