Why do some cores play a very loud BEEP when booting?
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Why do some cores play a very loud BEEP when booting?
I've noticed that many arcade cores will emit an obnoxious beep tone when they are launched, well before any ROM has bootstrapped or the resolution mode information appears on the screen. One example is Victory.
It also emits this sound even when the MiSTer audio is muted. On my system with amplified speakers connected it really is annoying.
Is this just the way the original hardware worked, or is there something that could be done to remove these?
It does seem odd that the BEEP doesn't even respect he volume or mute settings on the MiSTer.
It also emits this sound even when the MiSTer audio is muted. On my system with amplified speakers connected it really is annoying.
Is this just the way the original hardware worked, or is there something that could be done to remove these?
It does seem odd that the BEEP doesn't even respect he volume or mute settings on the MiSTer.
Re: Why do some cores play a very loud BEEP when booting?
I don't know about other cores, but that behavior is entirely consistent with a 486 PC. The beep came from the PC speaker, not the audio card. It was always piercingly loud. I recall my BIOS had an option to disable it though.
-
- Core Developer
- Posts: 48
- Joined: Fri Dec 11, 2020 2:39 pm
- Has thanked: 3 times
- Been thanked: 32 times
Re: Why do some cores play a very loud BEEP when booting?
There is a lag between when a core is loaded and when the initial volume command is sent to the core.
So if a core emits sound in the very initial period, it cannot be attenuated or muted by volume setting.
I think that's why the beep sound doesn't respect volume setting.
I don't know whether the initial beep in arcade cores also occurs in real hardware, or whether it is recreated as intended.
In any case, it would be better to be fixed, imho.
Btw, at least in my environment, the initial beep on Galaxian core occurs through SPDIF output but it doesn't occur through HDMI audio output.
I think this is due to a delay until HDMI signal is synced to my monitor.
Maybe those who are outputting sound via HDMI have not noticed the beep.
So if a core emits sound in the very initial period, it cannot be attenuated or muted by volume setting.
I think that's why the beep sound doesn't respect volume setting.
I don't know whether the initial beep in arcade cores also occurs in real hardware, or whether it is recreated as intended.
In any case, it would be better to be fixed, imho.
Btw, at least in my environment, the initial beep on Galaxian core occurs through SPDIF output but it doesn't occur through HDMI audio output.
I think this is due to a delay until HDMI signal is synced to my monitor.
Maybe those who are outputting sound via HDMI have not noticed the beep.
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
That would make sense. I am also using SPDIF output on the analog IO board.
Hopefully this can be looked at, and is a framework fix instead of a per core one.
Hopefully this can be looked at, and is a framework fix instead of a per core one.
Re: Why do some cores play a very loud BEEP when booting?
Lots of arcade hardware, especially the older ones with discrete sound circuits will make some form of noise on power up until the CPU gets around to setting all of the relevant ports to turn it off.
Re: Why do some cores play a very loud BEEP when booting?
Some sort of either a delay or fade-in on core load would be nice. I think modern car stereos do this when you turn on a car, so you do not blast your eardrums out.
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
Yes that would work, or just disconnect the audio from the core until it has finished booting and then re-connect (about the time that the resolution displays on the screen.
So, if one wanted to open a related ticket on github, which project would this fall under?
- ItalianGrandma
- Posts: 211
- Joined: Sun May 24, 2020 7:09 pm
- Has thanked: 45 times
- Been thanked: 52 times
- Contact:
Re: Why do some cores play a very loud BEEP when booting?
Probably just the main MiSTer project? https://github.com/MiSTer-devel/Main_MiSTer/issuesretrodroid wrote: ↑Sat May 15, 2021 2:39 pm So, if one wanted to open a related ticket on github, which project would this fall under?
-
- Core Developer
- Posts: 547
- Joined: Sun May 24, 2020 9:30 pm
- Has thanked: 20 times
- Been thanked: 145 times
Re: Why do some cores play a very loud BEEP when booting?
That would likely be rejected under Main_MiSTer.
It should be filed under the individual core(s) which exhibit this behaviour. Without specifics, it won't be examined.
But to be clear, you would be asking for a feature (not a bugfix) - and that may easily be rejected.
It should be filed under the individual core(s) which exhibit this behaviour. Without specifics, it won't be examined.
But to be clear, you would be asking for a feature (not a bugfix) - and that may easily be rejected.
- ItalianGrandma
- Posts: 211
- Joined: Sun May 24, 2020 7:09 pm
- Has thanked: 45 times
- Been thanked: 52 times
- Contact:
Re: Why do some cores play a very loud BEEP when booting?
True. Filing it under the individual cores is a better idea.dshadoff wrote: ↑Sun May 16, 2021 12:50 pm That would likely be rejected under Main_MiSTer.
It should be filed under the individual core(s) which exhibit this behaviour. Without specifics, it won't be examined.
But to be clear, you would be asking for a feature (not a bugfix) - and that may easily be rejected.
Re: Why do some cores play a very loud BEEP when booting?
Its the behavior some of the original hardware had
You want accuracy, you get beeps at start up.
You want accuracy, you get beeps at start up.
It is my great regret that we live in an age that is proud of machines that think and suspicious of people who try to.
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
Sure, but they shouldn't exist outside of the MiSTer volume and mute controls. So I'd consider this issue a "bug" for that reason, at least.
-
- Core Developer
- Posts: 547
- Joined: Sun May 24, 2020 9:30 pm
- Has thanked: 20 times
- Been thanked: 145 times
Re: Why do some cores play a very loud BEEP when booting?
OK, that does sound unexpected. But we still don't know which cores are affected (and thus, have nothing specific to verify/act upon).
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
I'll try to compile a reasonable starting list in the next week or so.
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
Okay, here is a nice starting list of cores that exhibit this full volume loud beep "feature":
* a.galaxn (Mr. Do’s Nightmare)
* azurian
* blkhole
* canyon (engine sound)
* Clean Sweep
* devilfsg
* kingball
* luctoday
* mars
* omegab
* phoenix (siren!)
* pleiads (siren!)
* ultratnk
* uniwars
* victory
* warofbug
In my test I have the MiSTer volume muted, and outputting sound out via the optical output on the analog IO board. These startup sounds come through at full volume.
If someone could verify if this issue exists when outputting via HDMI as well, that would be a useful datapoint.
I'm pretty sure this is just a MiSTer framework bug, it should be initializing the MiSTer audio settings before the core, so the mute is respected. Note that once the core has booted the volume is correctly muted.
* a.galaxn (Mr. Do’s Nightmare)
* azurian
* blkhole
* canyon (engine sound)
* Clean Sweep
* devilfsg
* kingball
* luctoday
* mars
* omegab
* phoenix (siren!)
* pleiads (siren!)
* ultratnk
* uniwars
* victory
* warofbug
In my test I have the MiSTer volume muted, and outputting sound out via the optical output on the analog IO board. These startup sounds come through at full volume.
If someone could verify if this issue exists when outputting via HDMI as well, that would be a useful datapoint.
I'm pretty sure this is just a MiSTer framework bug, it should be initializing the MiSTer audio settings before the core, so the mute is respected. Note that once the core has booted the volume is correctly muted.
Re: Why do some cores play a very loud BEEP when booting?
The problem is changing the audio settings require the core to be loaded. The audio outputs are connected directly to the FPGA side, not the linux side. So there's no real way to initialize audio before the core 'starts'. The FPGA is programmed, immediately starts executing once it initializes and enters 'user mode', THEN the linux side/main Mister can set the volume.
The choice is either have potentially loud noises emitted at core boot, or to change SYS so the default is 'fully attenuated/mute'. The problem is that's not 'accurate' and there's no way to make it a config option.
I guess you could do some complicated solution where cores load into some sort of 'paused' state so they can be configured and then told to 'run'. That feels like it would be a lot of work and may be core-by-core specific.
edit: dumb thought, but someone more familiar with the FPGA side would have to answer if this is feasible: Could you write the volume setting/value to some known/defined place in DDR memory, load the core and then have the core initialize volume from that memory location? Would that be easy(ier) to do or is that still not going to get read in time?
The choice is either have potentially loud noises emitted at core boot, or to change SYS so the default is 'fully attenuated/mute'. The problem is that's not 'accurate' and there's no way to make it a config option.
I guess you could do some complicated solution where cores load into some sort of 'paused' state so they can be configured and then told to 'run'. That feels like it would be a lot of work and may be core-by-core specific.
edit: dumb thought, but someone more familiar with the FPGA side would have to answer if this is feasible: Could you write the volume setting/value to some known/defined place in DDR memory, load the core and then have the core initialize volume from that memory location? Would that be easy(ier) to do or is that still not going to get read in time?
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: Why do some cores play a very loud BEEP when booting?
Sounds like the correct repo to report this on is the Template_MiSTer one then.
https://github.com/MiSTer-devel/Template_MiSTer
Maybe the correct thing to do is to start at zero volume and keep it like that until receiving a volume setting.
https://github.com/MiSTer-devel/Template_MiSTer
Maybe the correct thing to do is to start at zero volume and keep it like that until receiving a volume setting.
Converters I've written: Floppy DIM/FDI/FDD/HDM to D88, D88 to XDF, Tape SVI 318/328 CAS to WAV
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
Okay, I've logged a new issue for this bug: https://github.com/MiSTer-devel/Templat ... /issues/33
- aberu
- Core Developer
- Posts: 1192
- Joined: Tue Jun 09, 2020 8:34 pm
- Location: Longmont, CO
- Has thanked: 247 times
- Been thanked: 411 times
- Contact:
Re: Why do some cores play a very loud BEEP when booting?
https://github.com/MiSTer-devel/Templat ... 5db7501589
Looks like it's done on the template side. The cores just have to have their sys updated next.
Looks like it's done on the template side. The cores just have to have their sys updated next.
birdybro~
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: Why do some cores play a very loud BEEP when booting?
The Pleiads core is already updated. No more sirens
Converters I've written: Floppy DIM/FDI/FDD/HDM to D88, D88 to XDF, Tape SVI 318/328 CAS to WAV
-
- Posts: 138
- Joined: Tue Feb 02, 2021 5:55 pm
- Has thanked: 96 times
- Been thanked: 19 times
Re: Why do some cores play a very loud BEEP when booting?
Do I need to find the GitHub projects for each of these cores now and open issues to have them updated, or will the authors/maintainers pick up this fix "automagically" somehow?
- jimmystones
- Core Developer
- Posts: 218
- Joined: Sun Nov 22, 2020 1:26 pm
- Location: Reading, UK
- Has thanked: 32 times
- Been thanked: 251 times
- Contact:
Re: Why do some cores play a very loud BEEP when booting?
Alanswx, me and possibly others will work through the cores and update them - probably just those listed in the issue first.
No need to raise individual issues I dont think, frankly it won't speed up the process any
Also I'm on holiday
No need to raise individual issues I dont think, frankly it won't speed up the process any
Also I'm on holiday