#include <sound_effects.h>
|
|
static constexpr int | SAMPLE_RATE = 44100 |
| |
| static constexpr byte | TITLE_BURST = 0xF3 |
| |
Recreates the sound effects the original made by switching the PC speaker on and off in timing loops
◆ render()
| static Common::Array< byte > Ultima::Ultima3::SoundEffects::render |
( |
byte |
effect, |
|
|
byte |
arg1, |
|
|
byte |
arg2, |
|
|
bool |
timed = false |
|
) |
| |
|
static |
Works out the sound of an effect as unsigned 8-bit samples
- Parameters
-
| effect | The effect number, from 0xF4 to 0xFD |
| arg1 | The first of the values the effect is varied by |
| arg2 | The second |
| timed | True to make the effects as the Ultima III Upgrade does, which times them by a timer rather than by how long the processor takes |
- Returns
- The samples, or nothing if the effect isn't a sound
◆ renderSparkle()
Works out the buzz made as a title picture is revealed bit by bit, a pass of it at a time
- Parameters
-
| revealed | Whether each bit of the pass was drawn rather than left out |
| timed | True to make the buzz as the Ultima III Upgrade does |
- Returns
- The samples, which also give how long the pass takes
◆ TITLE_BURST
| constexpr byte Ultima::Ultima3::SoundEffects::TITLE_BURST = 0xF3 |
|
staticconstexpr |
The effect that is the noise at the end of the title screen's pictures being drawn
The documentation for this class was generated from the following file: