fc: slightly adjust fds output level
make clear where the magic number comes from
このコミットが含まれているのは:
コミット
f0fe40d5da
|
@ -104,10 +104,10 @@ auto FDSAudio::clock() -> void {
|
|||
|
||||
auto FDSAudio::updateOutput() -> void {
|
||||
static constexpr u32 lookup[4] = {36, 24, 17, 14};
|
||||
i32 level = min(carrier.gain, 32) * lookup[masterVolume];
|
||||
i32 level = min(carrier.gain, 32) * lookup[masterVolume]; //max level: 1152
|
||||
|
||||
n8 output = waveform.data[waveform.index] * level / 561;
|
||||
stream->frame(output / 255.0 * 0.25);
|
||||
n8 output = waveform.data[waveform.index] * level / 1152;
|
||||
stream->frame(output / 255.0 * 0.5);
|
||||
}
|
||||
|
||||
auto FDSAudio::read(n16 address, n8 data) -> n8 {
|
||||
|
|
読み込み中…
新しいイシューから参照