mirror of https://github.com/mgba-emu/mgba.git
GBA Audio: Fix GB audio channels being too quiet
Conflicts: src/gba/gba-audio.c
This commit is contained in:
parent
5cbfbd98c9
commit
d02a8fea57
1
CHANGES
1
CHANGES
|
@ -22,6 +22,7 @@ Bugfixes:
|
||||||
- GBA Video: Fix window interactions with 16-color mode 0 mosaic
|
- GBA Video: Fix window interactions with 16-color mode 0 mosaic
|
||||||
- GBA Video: Fix sprite boundary conditions with mosaic
|
- GBA Video: Fix sprite boundary conditions with mosaic
|
||||||
- Video: Fix FFmpeg crashing when the file extension is wrong
|
- Video: Fix FFmpeg crashing when the file extension is wrong
|
||||||
|
- GBA Audio: Fix GB audio channels being too quiet (fixes #159)
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Disable sync to video by default
|
- Qt: Disable sync to video by default
|
||||||
- GBA: Exit cleanly on FATAL if the port supports it
|
- GBA: Exit cleanly on FATAL if the port supports it
|
||||||
|
|
|
@ -690,7 +690,7 @@ static int _applyBias(struct GBAAudio* audio, int sample) {
|
||||||
static void _sample(struct GBAAudio* audio) {
|
static void _sample(struct GBAAudio* audio) {
|
||||||
int32_t sampleLeft = 0;
|
int32_t sampleLeft = 0;
|
||||||
int32_t sampleRight = 0;
|
int32_t sampleRight = 0;
|
||||||
int psgShift = 6 - audio->volume;
|
int psgShift = 5 - audio->volume;
|
||||||
|
|
||||||
if (audio->ch1Left) {
|
if (audio->ch1Left) {
|
||||||
sampleLeft += audio->ch1.sample;
|
sampleLeft += audio->ch1.sample;
|
||||||
|
|
Loading…
Reference in New Issue