mirror of
https://github.com/JanNeuendorf/SVC16.git
synced 2025-07-29 14:21:50 +00:00
The question of sound #11
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JanNeuendorf on 12/19/2024
Before the specifications are finalized, there is one important question left to answer.
I wanted to write out my thoughts on this, just in case someone sees this and wants to discuss it.
The big argument for having no sound output is of course simplicity.
Every emulator can output no sound correctly.
For someone writing stuff for the system, sound adds an additional layer of complexity while arguably not offering much of learning opportunity. At least not in the same way as drawing to a screen does.
But having no sound is a big sacrifice so it must be considered carefully.
If one wanted to add sound, what would be the possible ways to do this while changing the system as little as possible?
Two constrains I would have here are:
The second point is a big deal for sound. The sound that is played could only be updated every frame. What could this sound be?
Idea1 A simple beep
It could just be a beeping sound that could be triggered with the sync instruction. Maybe there could be a list of levels like: beep, warning, loud warning etc. and it is left to the implementation what that means.
Idea2 Fixed Waves
There could be a list of frequencies of sine- or square-waves that can be activated. This would require some format to be invented. It might be very difficult to fit this into a single u16.
Idea3 A buffer for Sound
There could be a buffer for the raw amplitude of the sound that is played every frame.
There are a bunch of problems with this: