GB Audio: Fix channel 4 volume (fixes #1529)

This commit is contained in:
Vicki Pfau 2019-09-19 21:30:28 -07:00
parent 9886bce155
commit 0e92a22840
1 changed files with 1 additions and 1 deletions

View File

@ -770,7 +770,7 @@ static int32_t _updateSquareChannel(struct GBAudioSquareChannel* ch) {
static int16_t _coalesceNoiseChannel(struct GBAudioNoiseChannel* ch) {
if (!ch->nSamples) {
return ch->sample;
return ch->sample << 3;
}
// TODO keep track of timing
int16_t sample = (ch->samples << 3) / ch->nSamples;