mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
NES: fix audio resolution being too low
This commit is contained in:
parent
de908d7b95
commit
180ff2457d
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ void DivPlatformNES::acquire(short* bufL, short* bufR, size_t start, size_t len)
|
|||
if (nes->apu.clocked) {
|
||||
nes->apu.clocked=false;
|
||||
}
|
||||
int sample=(pulse_output(nes)+tnd_output(nes));
|
||||
int sample=(pulse_output(nes)+tnd_output(nes))<<6;
|
||||
if (sample>32767) sample=32767;
|
||||
if (sample<-32768) sample=-32768;
|
||||
bufL[i]=sample;
|
||||
|
@ -471,7 +471,7 @@ int DivPlatformNES::getRegisterPoolSize() {
|
|||
}
|
||||
|
||||
float DivPlatformNES::getPostAmp() {
|
||||
return 128.0f;
|
||||
return 2.0f;
|
||||
}
|
||||
|
||||
void DivPlatformNES::reset() {
|
||||
|
|
Loading…
Reference in a new issue