fc: slightly adjust fds output level

make clear where the magic number comes from
このコミットが含まれているのは:
encoded-byte 2023-05-12 16:14:20 +02:00 committed by Luke Usher
コミット f0fe40d5da
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -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 {